Skip to content

Commit fff6770

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdaviz/configs/specviz2d/tests/test_parsers.py

+2-2
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')

0 commit comments

Comments
 (0)