From fa8e936a78318a945a3f7d6c6771b98f249bbb6c Mon Sep 17 00:00:00 2001 From: Derek Homeier Date: Wed, 31 Jul 2024 16:35:06 +0200 Subject: [PATCH] Update test_trace to specreduce 1.4 interface --- glue_astronomy/translators/tests/test_trace.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/glue_astronomy/translators/tests/test_trace.py b/glue_astronomy/translators/tests/test_trace.py index 00e42f4..f455d00 100644 --- a/glue_astronomy/translators/tests/test_trace.py +++ b/glue_astronomy/translators/tests/test_trace.py @@ -1,14 +1,19 @@ import numpy as np from specreduce import tracing -from specreduce.utils.synth_data import make_2dspec_image + +# renamed in specreduce 1.4 +try: + from specreduce.utils.synth_data import make_2d_trace_image +except ImportError: + from specreduce.utils.synth_data import make_2dspec_image as make_2d_trace_image from glue.core import Data, DataCollection def test_trace(): - image = make_2dspec_image() + image = make_2d_trace_image() trace = tracing.FlatTrace(image, 5) data_collection = DataCollection()