From 7fc9eca50e8104a9259fe11549e8a186b5669ffe Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Tue, 14 May 2024 16:35:06 -0700 Subject: [PATCH] try to eliminate some warnings. --- .github/workflows/python-package.yml | 7 +++---- docs/history.rst | 9 +++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 497840b..080c4d7 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -23,7 +23,7 @@ jobs: astropy-version: ['<5.0', '<5.1'] numpy-version: ['<1.20', '<1.21', '<1.22'] scipy-version: ['<1.6', '<1.7'] - matplotlib-version: ['<3.4', '<3.5'] + speclite-version: ['==0.19'] steps: - name: Checkout code @@ -40,11 +40,10 @@ jobs: run: | python -m pip install --upgrade pip wheel setuptools python -m pip install pytest pytest-astropy pyyaml - # python -m pip install -r requirements.txt python -m pip install 'scipy${{ matrix.scipy-version }}' - python -m pip install 'matplotlib${{ matrix.matplotlib-version }}' python -m pip install 'astropy${{ matrix.astropy-version }}' python -m pip install 'numpy${{ matrix.numpy-version }}' + python -m pip install 'speclite${{ matrix.speclite-version }}' - name: Run the test run: pytest @@ -72,7 +71,7 @@ jobs: run: | python -m pip install --upgrade pip wheel setuptools python -m pip install pytest pytest-astropy coveralls - python -m pip install pyyaml numpy\<1.21 scipy\<1.6 matplotlib\<3.3 astropy\<5.0 + python -m pip install pyyaml numpy\<1.21 scipy\<1.6 astropy\<5.0 speclite==0.19 - name: Run the test with coverage run: pytest --cov diff --git a/docs/history.rst b/docs/history.rst index 12ee54b..f2f07ab 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -18,13 +18,18 @@ Backwards Compatibility The following recipes all give identical results in their output file ``ab22.dat`` and assume that the DESIMODEL environment variable has been set. -First, using the final SVN python version (revision 2134):: +First, using the final SVN python version (revision 2134): + + +.. code-block:: shell cd $DESIMODEL python bin/quicksim.py --infile data/spectra/spec-ABmag22.0.dat --model qso \ --verbose --show-plot --outfile ab22.dat -Next, using the first release (v0.1) after moving to a dedicated package on github:: +Next, using the first release (v0.1) after moving to a dedicated package on github: + +.. code-block:: shell export SPECSIM_MODEL=$DESIMODEL ln -s $SPECSIM_MODEL/data/throughput specsim/data/throughput