From a5f024af4d259f1a9e8aa1812b49bb8f87c3f90b Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Thu, 17 Oct 2024 15:57:38 -0400 Subject: [PATCH] restrict function to Sum * dropdown will still show until future PR to upstream --- .../photometric_extraction/photometric_extraction.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lcviz/plugins/photometric_extraction/photometric_extraction.py b/lcviz/plugins/photometric_extraction/photometric_extraction.py index 235c555..6f704be 100644 --- a/lcviz/plugins/photometric_extraction/photometric_extraction.py +++ b/lcviz/plugins/photometric_extraction/photometric_extraction.py @@ -40,11 +40,16 @@ def __init__(self, *args, **kwargs): def is_tpf(data): return len(data.shape) == 3 self.dataset.filters = [is_tpf] + + # only allow for Sum + self.function._manual_options = ['Sum'] + self.function.items = [{"label": "Sum"}] + self._set_relevant() # move upstream? @property def user_api(self): - expose = ['dataset', 'function', 'aperture', + expose = ['dataset', 'aperture', 'background', 'add_results', 'extract', 'aperture_method']