Skip to content

Commit

Permalink
restrict function to Sum
Browse files Browse the repository at this point in the history
* dropdown will still show until future PR to upstream
  • Loading branch information
kecnry committed Oct 17, 2024
1 parent fae2324 commit a5f024a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit a5f024a

Please sign in to comment.