Skip to content

Commit

Permalink
Merge pull request #77 from york-stsci/master
Browse files Browse the repository at this point in the history
Add PSF grid and non-memmapped calculations
  • Loading branch information
york-stsci authored May 21, 2020
2 parents e103090 + adea3f9 commit a51cece
Show file tree
Hide file tree
Showing 15 changed files with 888 additions and 464 deletions.
44 changes: 25 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,40 +115,46 @@ matrix:

before_install:

# Make data dir
- mkdir $TRAVIS_BUILD_DIR/test_data
- TEST_DATA_PATH=$TRAVIS_BUILD_DIR/test_data

# Download stips data
- wget https://stsci.box.com/shared/static/iufbhsiu0lts16wmdsi12cun25888nrb.gz -O /tmp/stips_data_current.tar.gz
- tar -xzvf /tmp/stips_data_current.tar.gz
- export stips_data=$PWD/stips_data
- wget https://stsci.box.com/shared/static/iufbhsiu0lts16wmdsi12cun25888nrb.gz -O $TEST_DATA_PATH/stips_data_current.tar.gz
- tar -xzvf $TEST_DATA_PATH/stips_data_current.tar.gz -C $TEST_DATA_PATH/
- export stips_data=$TEST_DATA_PATH/stips_data

# download synphot data
- mkdir synphot
- mkdir $TEST_DATA_PATH/synphot

- wget -qO- http://ssb.stsci.edu/cdbs/tarfiles/synphot1.tar.gz -O /tmp/synphot1.tar.gz
- wget -qO- http://ssb.stsci.edu/cdbs/tarfiles/synphot2.tar.gz -O /tmp/synphot2.tar.gz
- wget -qO- http://ssb.stsci.edu/cdbs/tarfiles/synphot5.tar.gz -O /tmp/synphot5.tar.gz
- wget -qO- http://ssb.stsci.edu/cdbs/tarfiles/synphot1.tar.gz -O $TEST_DATA_PATH/synphot1.tar.gz
- wget -qO- http://ssb.stsci.edu/cdbs/tarfiles/synphot2.tar.gz -O $TEST_DATA_PATH/synphot2.tar.gz
- wget -qO- http://ssb.stsci.edu/cdbs/tarfiles/synphot5.tar.gz -O $TEST_DATA_PATH/synphot5.tar.gz

- tar -xzvf /tmp/synphot1.tar.gz -C $PWD/synphot/
- tar -xzvf /tmp/synphot2.tar.gz -C $PWD/synphot/
- tar -xzvf /tmp/synphot5.tar.gz -C $PWD/synphot/
- tar -xzvf $TEST_DATA_PATH/synphot1.tar.gz -C $TEST_DATA_PATH/synphot/
- tar -xzvf $TEST_DATA_PATH/synphot2.tar.gz -C $TEST_DATA_PATH/synphot/
- tar -xzvf $TEST_DATA_PATH/synphot5.tar.gz -C $TEST_DATA_PATH/synphot/

- export PYSYN_CDBS=$PWD/synphot/grp/hst/cdbs
- export PYSYN_CDBS=$TEST_DATA_PATH/synphot/grp/hst/cdbs

# download pandeia_data data
- wget -qO- https://stsci.box.com/shared/static/5j506xzg9tem2l7ymaqzwqtxne7ts3sr.gz -O /tmp/pandeia_data-1.5_wfirst.gz
- wget -qO- https://stsci.box.com/shared/static/5j506xzg9tem2l7ymaqzwqtxne7ts3sr.gz -O $TEST_DATA_PATH/pandeia_data-1.5_wfirst.gz

- tar -xzvf /tmp/pandeia_data-1.5_wfirst.gz -C $PWD/
- export pandeia_refdata=$PWD/pandeia_data-1.5_wfirst
- tar -xzvf $TEST_DATA_PATH/pandeia_data-1.5_wfirst.gz -C $TEST_DATA_PATH/
- export pandeia_refdata=$TEST_DATA_PATH/pandeia_data-1.5_wfirst

# download webbpsf data
- wget -qO- https://stsci.box.com/shared/static/qcptcokkbx7fgi3c00w2732yezkxzb99.gz -O /tmp/webbpsf_data.gz
- tar -xzvf /tmp/webbpsf_data.gz -C $PWD/
- export WEBBPSF_PATH=$PWD/webbpsf-data

- wget -qO- https://stsci.box.com/shared/static/qcptcokkbx7fgi3c00w2732yezkxzb99.gz -O $TEST_DATA_PATH/webbpsf_data.gz
- tar -xzvf $TEST_DATA_PATH/webbpsf_data.gz -C $TEST_DATA_PATH/
- export WEBBPSF_PATH=$TEST_DATA_PATH/webbpsf-data

# If VERYSLOW is set to false for a test, add args to pytest
# The format (... "..") is because there are multiple quotation marks in bash
# They variable will be constructed into a command via "${extra_args[@]}"
- |
if [[ $VERYSLOW == 'false' && $SETUP_CMD == 'test' ]]; then
echo "Testing functions without veryslow marker"
extra_args=(-a " -m \'veryslow\' ");
extra_args=(-a "-m 'not veryslow'");
else
extra_args=();
fi
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ minversion = 3.0
norecursedirs = build docs/_build
doctest_plus = enabled
addopts = -p no:warnings
markers =
slow: takes more than 12.5 minutes. Deselect with '-m "not slow"'
veryslow: takes more than 1 hour. Deselect with '-m "not veryslow"'
network: requires internet connection. Deselect with '-m "not network"'


[ah_bootstrap]
auto_use = True
Expand Down
Loading

0 comments on commit a51cece

Please sign in to comment.