File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
jdaviz/configs/specviz2d/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments