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):
25
25
assert dc_1 .label == 'Spectrum 1D'
26
26
assert 'header' not in dc_1 .meta
27
27
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
30
30
31
31
# Also check the coordinates info panel.
32
32
viewer_2d = specviz2d_helper .app .get_viewer ('spectrum-2d-viewer' )
@@ -66,7 +66,7 @@ def test_2d_parser_no_unit(specviz2d_helper, mos_spectrum2d):
66
66
67
67
dc_1 = specviz2d_helper .app .data_collection [1 ]
68
68
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
70
70
71
71
# Also check the coordinates info panel.
72
72
viewer_2d = specviz2d_helper .app .get_viewer ('spectrum-2d-viewer' )
You can’t perform that action at this time.
0 commit comments