From 21f8ff50354ce9baf1d32fb114e7a9f50267c7bf Mon Sep 17 00:00:00 2001 From: Derek Homeier Date: Wed, 31 Jul 2024 19:35:02 +0200 Subject: [PATCH 1/2] Update test_trace to specreduce 1.4 `trace_image` interface --- glue_astronomy/translators/tests/test_trace.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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() From 5c91529b6b0088045789c21f338548d731e5155c Mon Sep 17 00:00:00 2001 From: Derek Homeier Date: Wed, 31 Jul 2024 19:35:33 +0200 Subject: [PATCH 2/2] TST: update Windows env to minimal Astropy requirements --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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