From 9384b3e76faf221e3b90da60ff727f1c25bb54cf Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 15 Nov 2022 20:47:07 -0500 Subject: [PATCH] Backport PR #1844: FIX: added missing comma in choices for trace peak method --- CHANGES.rst | 2 ++ .../plugins/spectral_extraction/spectral_extraction.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index e17558cc16..855e979f7a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -32,6 +32,8 @@ Specviz Specviz2d ^^^^^^^^^ +- Fixed options for peak method in spectral extraction plugin. [#1844] + 3.1 (2022-10-26) ================ diff --git a/jdaviz/configs/specviz2d/plugins/spectral_extraction/spectral_extraction.py b/jdaviz/configs/specviz2d/plugins/spectral_extraction/spectral_extraction.py index b81679b989..53d16a3a82 100644 --- a/jdaviz/configs/specviz2d/plugins/spectral_extraction/spectral_extraction.py +++ b/jdaviz/configs/specviz2d/plugins/spectral_extraction/spectral_extraction.py @@ -210,7 +210,7 @@ def __init__(self, *args, **kwargs): self.trace_peak_method = SelectPluginComponent(self, items='trace_peak_method_items', selected='trace_peak_method_selected', - manual_options=['Gaussian', 'Centroid' 'Max']) # noqa + manual_options=['Gaussian', 'Centroid', 'Max']) # noqa self.trace_add_results = AddResults(self, 'trace_results_label', 'trace_results_label_default',