diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9472287..61080da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,14 +35,16 @@ jobs: # Standard tests - linux: py38-test - linux: py39-test + - linux: py312-test - linux: py310-test-dev - linux: py311-test-dev - linux: py312-test-dev - macos: py311-test + - macos: py312-test-dev + - windows: py38-test - - windows: py39-test-dev - - macos: py310-test-dev + - windows: py311-test-dev publish: needs: tests diff --git a/glue_astronomy/translators/tests/test_trace.py b/glue_astronomy/translators/tests/test_trace.py index 00e42f4..58e0ac9 100644 --- a/glue_astronomy/translators/tests/test_trace.py +++ b/glue_astronomy/translators/tests/test_trace.py @@ -1,14 +1,21 @@ import numpy as np from specreduce import tracing -from specreduce.utils.synth_data import make_2dspec_image + +# renamed in specreduce 1.4 and `add_noise` option added (requires photutils) +try: + from specreduce.utils.synth_data import make_2d_trace_image + trace_args = dict(add_noise=False) +except ImportError: + from specreduce.utils.synth_data import make_2dspec_image as make_2d_trace_image + trace_args = dict() from glue.core import Data, DataCollection def test_trace(): - image = make_2dspec_image() + image = make_2d_trace_image(**trace_args) trace = tracing.FlatTrace(image, 5) data_collection = DataCollection()