Skip to content

Commit

Permalink
update default display unit for time axis
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed May 28, 2024
1 parent e088a70 commit 4097fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcviz/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _get_display_unit(app, axis):
if app._jdaviz_helper is None or app._jdaviz_helper.plugins.get('Unit Conversion') is None: # noqa
# fallback on native units (unit conversion is not enabled)
if axis == 'time':
return u.dimensionless_unscaled
return u.d
elif axis == 'flux':
return app._jdaviz_helper.default_time_viewer._obj.data()[0].flux.unit
else:
Expand Down

0 comments on commit 4097fd4

Please sign in to comment.