From 6f92bd781f45f79e4f2535792396fafc93a30ebe Mon Sep 17 00:00:00 2001 From: Ricky O'Steen Date: Mon, 26 Apr 2021 10:31:10 -0400 Subject: [PATCH] Remove unwanted data label input --- jdaviz/configs/specviz/plugins/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdaviz/configs/specviz/plugins/parsers.py b/jdaviz/configs/specviz/plugins/parsers.py index 5eeeee08ff..bb1df79433 100644 --- a/jdaviz/configs/specviz/plugins/parsers.py +++ b/jdaviz/configs/specviz/plugins/parsers.py @@ -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