Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checks for multioutput plugins and loop dependencies #312

Merged
merged 3 commits into from
Sep 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions strax/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ def compute(self, **kwargs):
loop_over = self.loop_over
else:
loop_over = self.deps[self.depends_on[0]].data_kind
if not isinstance(loop_over, str):
raise TypeError("Please add \"loop_over = <base>\""
" to your plugin definition")

# Group into lists of things (e.g. peaks)
# contained in the base things (e.g. events)
Expand Down