Skip to content

Commit

Permalink
Added regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Apr 26, 2024
1 parent bccadee commit 2b46109
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions glue/viewers/profile/tests/test_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,9 @@ def test_unit_conversion():
assert_allclose(viewer.state.x_max, (0.5 * u.GHz).to_value(u.cm, equivalencies=u.spectral()))
assert_allclose(viewer.state.y_min, 0.5)
assert_allclose(viewer.state.y_max, 3.5)

# Regression test for a bug that caused unit changes to not work on y axis
# if reference data was not first layer

viewer.state.reference_data = d2
viewer.state.y_display_unit = 'mJy'

0 comments on commit 2b46109

Please sign in to comment.