Skip to content

Commit

Permalink
Remove unwanted data label input
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Apr 28, 2021
1 parent 376725c commit 6f92bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/configs/specviz/plugins/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def specviz_spectrum1d_parser(app, data, data_label=None, format=None, show_in_v
raise TypeError("Data is not a Spectrum1D object or compatible file")

# If there's already data in the viewer, convert units if needed
current_spec = app.get_data_from_viewer("spectrum-viewer", data_label=data_label)
current_spec = app.get_data_from_viewer("spectrum-viewer")
if current_spec != {} and current_spec is not None:
spec_key = list(current_spec.keys())[0]
current_unit = current_spec[spec_key].spectral_axis.unit
Expand Down

0 comments on commit 6f92bd7

Please sign in to comment.