Skip to content

Commit

Permalink
make sure not only translation equivalencies are in marks.py but also…
Browse files Browse the repository at this point in the history
… conversions
  • Loading branch information
gibsongreen committed Jul 18, 2024
1 parent 4c8e667 commit ac1ddc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/core/marks.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def set_y_unit(self, unit=None):
spec = self.viewer.state.reference_data.get_object(cls=Spectrum1D)
eqv = u.spectral_density(spec.spectral_axis)
if ('_pixel_scale_factor' in spec.meta):
eqv = _eqv_pixar_sr(spec.meta['_pixel_scale_factor'])
eqv += _eqv_pixar_sr(spec.meta['_pixel_scale_factor'])
y = (self.y * self.yunit).to_value(unit, equivalencies=eqv)

Check warning on line 118 in jdaviz/core/marks.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/core/marks.py#L116-L118

Added lines #L116 - L118 were not covered by tests
else:
y = (self.y * self.yunit).to_value(unit, equivalencies=eqv)

Check warning on line 120 in jdaviz/core/marks.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/core/marks.py#L120

Added line #L120 was not covered by tests
Expand Down

0 comments on commit ac1ddc8

Please sign in to comment.