-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor of LineList tables #409
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
fc5870f
convert fk5 -> icrs
profxj 2cd117c
am xabssys warning too
profxj 56fd16c
Merge branches 'fk5_refactor' and 'master' of https://github.com/line…
profxj 9944216
a few more fk5 purges
profxj 73b0414
astropy 2.0.1
profxj a140db3
fussing..
profxj e09af09
tejos code..
profxj d1ef307
passing on my machine
profxj f8bfd8f
still suffering.. somehow aux columns change!
profxj 27c8ff5
progressing (I hope)
profxj ee1e9b8
struggling with masked table..
profxj 5487b92
linelist made
profxj a81d163
sped up available
profxj 866109c
refactor is there
profxj a1e8ba0
passing 2.0.1
profxj c251659
fussing with travis
profxj 7ce8666
whole new travis file
profxj 4436751
speclite file
profxj 0c7abc8
reducing the tests
profxj 7a77e02
fix 2.7
profxj e7d3c9d
moved extras to self._extra_table
profxj 91e3782
Merge branches 'fk5_refactor' and 'master' of https://github.com/line…
profxj fe60a20
edits to NT
profxj bf9d89e
sorting in subset
profxj File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,126 +1,125 @@ | ||
language: python | ||
|
||
# The apt packages below are needed for sphinx builds, which can no longer | ||
# be installed with sudo apt-get. | ||
addons: | ||
apt: | ||
packages: | ||
- graphviz | ||
- texlive-latex-extra | ||
- dvipng | ||
|
||
python: | ||
- 2.7 | ||
- 3.5 | ||
- 3.6 | ||
|
||
# This is just for "egg_info". All other builds are explicitly given in the matrix | ||
# We set the language to c because python isn't supported on the MacOS X nodes | ||
# on Travis. However, the language ends up being irrelevant anyway, since we | ||
# install Python ourselves using conda. | ||
language: c | ||
|
||
os: | ||
- linux | ||
|
||
# Setting sudo to false opts in to Travis-CI container-based builds. | ||
sudo: false | ||
|
||
env: | ||
global: | ||
|
||
# The following versions are the 'default' for tests, unless | ||
# overidden underneath. They are defined here in order to save having | ||
# overridden underneath. They are defined here in order to save having | ||
# to repeat them for all configurations. | ||
- NUMPY_VERSION=1.11 | ||
- FOLDERNAME='linetools' | ||
- PYTHON_VERSION=3.6 | ||
- ASTROPY_VERSION=stable | ||
- CONDA_INSTALL='conda install -c astropy-ci-extras --yes' | ||
- PIP_INSTALL='pip install' | ||
- NUMPY_VERSION=stable | ||
- MAIN_CMD='python setup.py' | ||
- SETUP_CMD='test' | ||
- CONDA_DEPENDENCIES='scipy h5py pyyaml matplotlib' | ||
- PIP_DEPENDENCIES='' | ||
- EVENT_TYPE='pull_request push' | ||
- TASK='test' | ||
|
||
# Conda packages for affiliated packages are hosted in channel | ||
# "astropy" while builds for astropy LTS with recent numpy versions | ||
# are in astropy-ci-extras. If your package uses either of these, | ||
# add the channels to CONDA_CHANNELS along with any other channels | ||
# you want to use. | ||
- CONDA_CHANNELS='astropy-ci-extras' | ||
|
||
# If there are matplotlib or other GUI tests, uncomment the following | ||
# line to use the X virtual framebuffer. | ||
- SETUP_XVFB=True | ||
|
||
matrix: | ||
- SETUP_CMD='egg_info' | ||
# Extra context is a way to override options that the user normally | ||
# specifies during the questions phase of the cookiecutter setup. The keys | ||
# being overridden here must exist in the cookiecutter.json | ||
# See https://cookiecutter.readthedocs.io/en/0.9.1/advanced_usage.html#injecting-extra-context | ||
#- EXTRA_CONTEXT='' | ||
#- EXTRA_CONTEXT='include_example_cython_code=y' | ||
#- EXTRA_CONTEXT="package_name=AstropyProject" FOLDERNAME='AstropyProject' | ||
#- EXTRA_CONTEXT='_parent_project=sunpy' | ||
#- TASK='render' EXTRA_CONTEXT='include_example_cython_code=y initialize_git_repo=n' | ||
- PYTHON_VERSION=2.7 SETUP_CMD='egg_info' | ||
- PYTHON_VERSION=3.6 SETUP_CMD='egg_info' | ||
|
||
matrix: | ||
|
||
# Don't wait for allowed failures | ||
fast_finish: true | ||
|
||
include: | ||
# Try MacOS X | ||
#- os: osx | ||
# env: SETUP_CMD='test' | ||
|
||
# Do a coverage test in Python 2. | ||
- python: 2.7 | ||
# Do a coverage test. | ||
- os: linux | ||
env: SETUP_CMD='test --coverage' | ||
|
||
# Check for sphinx doc build warnings - we do this first because it | ||
# may run for a long time. Add -w flag to fail on any warning. | ||
#- python: 3.4 | ||
# env: SETUP_CMD='build_sphinx -w' | ||
|
||
# Try Astropy development version | ||
#- python: 2.7 | ||
# env: ASTROPY_VERSION=development SETUP_CMD='test' | ||
#- python: 3.5 | ||
# env: ASTROPY_VERSION=development SETUP_CMD='test' | ||
|
||
# Try all python versions with the latest numpy | ||
- python: 2.7 | ||
env: SETUP_CMD='test' | ||
- python: 3.5 | ||
env: SETUP_CMD='test' | ||
- python: 3.6 | ||
env: SETUP_CMD='test' | ||
|
||
# Try older numpy versions. | ||
# - python: 2.7 | ||
# env: NUMPY_VERSION=1.9 SETUP_CMD='test' | ||
|
||
before_install: | ||
|
||
# Use utf8 encoding. Should be default, but this is insurance against | ||
# future changes | ||
- export PYTHONIOENCODING=UTF8 | ||
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh | ||
- chmod +x miniconda.sh | ||
- ./miniconda.sh -b -p $HOME/miniconda | ||
- export PATH=$HOME/miniconda/bin:$PATH | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update --yes conda | ||
|
||
# UPDATE APT-GET LISTINGS | ||
#- sudo apt-get update | ||
|
||
# DOCUMENTATION DEPENDENCIES | ||
# - if [[ $SETUP_CMD == build_sphinx* ]]; then sudo apt-get install graphviz texlive-latex-extra dvipng; fi | ||
# may run for a long time | ||
#- os: linux | ||
# env: SETUP_CMD='build_docs -w' | ||
|
||
# Now try Astropy dev and LTS vesions with the latest 3.x and 2.7. | ||
- os: linux | ||
env: PYTHON_VERSION=2.7 ASTROPY_VERSION=development | ||
EVENT_TYPE='pull_request push cron' | ||
- os: linux | ||
env: ASTROPY_VERSION=development | ||
EVENT_TYPE='pull_request push cron' | ||
#- os: linux | ||
# env: PYTHON_VERSION=2.7 ASTROPY_VERSION=lts | ||
#- os: linux | ||
# env: ASTROPY_VERSION=lts | ||
|
||
# Try all python versions and Numpy versions. Since we can assume that | ||
# the Numpy developers have taken care of testing Numpy with different | ||
# versions of Python, we can vary Python and Numpy versions at the same | ||
# time. | ||
|
||
- os: linux | ||
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.11 | ||
#- os: linux | ||
# env: PYTHON_VERSION=3.3 NUMPY_VERSION=1.8 | ||
#- os: linux | ||
# env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.9 | ||
#- os: linux | ||
# env: PYTHON_VERSION=3.5 NUMPY_VERSION=1.10 | ||
- os: linux | ||
env: NUMPY_VERSION=1.11 | ||
|
||
# Try numpy pre-release | ||
- os: linux | ||
env: NUMPY_VERSION=prerelease | ||
EVENT_TYPE='pull_request push cron' | ||
|
||
# Do a PEP8 test with pycodestyle | ||
- os: linux | ||
env: MAIN_CMD='pycodestyle packagename --count' SETUP_CMD='' | ||
|
||
allow_failures: | ||
# Do a PEP8 test with pycodestyle | ||
# (allow to fail unless your code completely compliant) | ||
- os: linux | ||
env: MAIN_CMD='pycodestyle packagename --count' SETUP_CMD='' | ||
|
||
install: | ||
|
||
# CONDA | ||
- conda create --yes -n test -c astropy-ci-extras python=$TRAVIS_PYTHON_VERSION pyqt=5 qtpy | ||
- source activate test | ||
|
||
# CORE DEPENDENCIES | ||
- if [[ $SETUP_CMD != egg_info ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION pytest pip Cython jinja2; fi | ||
- if [[ $SETUP_CMD != egg_info ]]; then $PIP_INSTALL pytest-xdist; fi | ||
|
||
# ASTROPY | ||
- if [[ $SETUP_CMD != egg_info ]] && [[ $ASTROPY_VERSION == development ]]; then $PIP_INSTALL git+http://github.com/astropy/astropy.git#egg=astropy; fi | ||
- if [[ $SETUP_CMD != egg_info ]] && [[ $ASTROPY_VERSION == stable ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION astropy; fi | ||
|
||
# OPTIONAL DEPENDENCIES | ||
# Here you can add any dependencies your package may have. You can use | ||
# conda for packages available through conda, or pip for any other | ||
# packages. You should leave the `numpy=$NUMPY_VERSION` in the `conda` | ||
# install since this ensures Numpy does not get automatically upgraded. | ||
- if [[ $SETUP_CMD != egg_info ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION scipy; fi | ||
- if [[ $SETUP_CMD != egg_info ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION h5py; fi | ||
- if [[ $SETUP_CMD != egg_info ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION pyyaml; fi | ||
- if [[ $SETUP_CMD != egg_info ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION matplotlib; fi | ||
|
||
# DOCUMENTATION DEPENDENCIES | ||
# build_sphinx needs sphinx and matplotlib (for plot_directive). Note that | ||
# this matplotlib will *not* work with py 3.x, but our sphinx build is | ||
# currently 2.7, so that's fine | ||
- if [[ $SETUP_CMD == build_sphinx* ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION Sphinx=1.3; fi | ||
|
||
# COVERAGE DEPENDENCIES | ||
#- if [[ $SETUP_CMD == 'test --coverage' ]]; then $PIP_INSTALL coverage coveralls; fi | ||
- if [[ $SETUP_CMD == 'test --coverage' ]]; then $PIP_INSTALL coverage==3.7.1 coveralls; fi | ||
|
||
before_script: # Required for plotting tests | ||
- "export DISPLAY=:99.0" | ||
- "sh -e /etc/init.d/xvfb start" | ||
- sleep 3 # give xvfb some time to start | ||
- git clone git://github.com/astropy/ci-helpers.git | ||
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh | ||
|
||
script: | ||
- python setup.py $SETUP_CMD | ||
- $MAIN_CMD $SETUP_CMD | ||
|
||
|
||
after_success: | ||
# If coveralls.io is set up for this package, uncomment the line | ||
# below and replace "packagename" with the name of your package. | ||
# The coveragerc file may be customized as needed for your package. | ||
- if [[ $SETUP_CMD == 'test --coverage' ]]; then coveralls --rcfile='linetools/tests/coveragerc'; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
; Lines by hand from Tripp list | ||
; Will update with atomic data before too long | ||
; Ref column added by hand by N. Tejos (Dec 28, 2015) | ||
| wrest | name | f | Z | ion | Ref | | ||
| 551.3621 | ArVI 551 | 0.00 | 18 | 6 | Tripp | | ||
| 562.711 | NeVI* 562a | 0.00 | 10 | 6 | Tripp | | ||
| 562.803 | NeVI* 562b | 0.00 | 10 | 6 | Tripp | | ||
| 569.758 | NeV* 659a | 0.00 | 10 | 5 | Tripp | | ||
| 569.830 | NeV* 659b | 0.00 | 10 | 5 | Tripp | | ||
wrest | name | f | Z | ion | Ref | ||
551.3621 | ArVI 551 | 0.00 | 18 | 6 | Tripp | ||
562.711 | NeVI* 562a | 0.00 | 10 | 6 | Tripp | ||
562.803 | NeVI* 562b | 0.00 | 10 | 6 | Tripp | ||
569.758 | NeV* 659a | 0.00 | 10 | 5 | Tripp | ||
569.830 | NeV* 659b | 0.00 | 10 | 5 | Tripp |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 65: I think this function is actually tested through test_gaussew_absline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't passing astropy 2.0.1 without this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, my comment should have been inserted much higher and has nothing to do with your committed change. I was referring to your comment just below the docstring: "Note: Tested in test_absline_anly"