Skip to content

Commit 0936816

Browse files
committed
update units in parser test
1 parent bac82cd commit 0936816

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jdaviz/configs/specviz2d/tests/test_parsers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def test_2d_parser_jwst(specviz2d_helper):
2525
assert dc_1.label == 'Spectrum 1D'
2626
assert 'header' not in dc_1.meta
2727

28-
# TODO: Update this when specreduce is fixed.
29-
assert dc_1.get_component('flux').units == 'DN'
28+
# extracted 1D spectrum should have same flux units as 2d spectrum
29+
assert dc_1.get_component('flux').units == dc_0.get_component('flux').units
3030

3131
# Also check the coordinates info panel.
3232
viewer_2d = specviz2d_helper.app.get_viewer('spectrum-2d-viewer')
@@ -66,7 +66,7 @@ def test_2d_parser_no_unit(specviz2d_helper, mos_spectrum2d):
6666

6767
dc_1 = specviz2d_helper.app.data_collection[1]
6868
assert dc_1.label == 'Spectrum 1D'
69-
assert dc_1.get_component('flux').units == 'DN'
69+
assert dc_1.get_component('flux').units == dc_0.get_component('flux').units
7070

7171
# Also check the coordinates info panel.
7272
viewer_2d = specviz2d_helper.app.get_viewer('spectrum-2d-viewer')

0 commit comments

Comments
 (0)