Instead of trying to specifically detect boolean return values from analysis pipeline operations, we now interpret any non-None return value as a boolean for filtering. This avoids increasingly complex checks to correctly detecting all boolean-like values. This also adds an always_do option to add_operation, which allows an operation to be run regardless of prior filters. This can be useful for adding cleanup functions at the ends of pipelines.
PR Checklist
[ ] Code passes tests.
[ ] New features are documented with docstrings and narrative docs.
PR Summary
Instead of trying to specifically detect boolean return values from analysis pipeline operations, we now interpret any non-None return value as a boolean for filtering. This avoids increasingly complex checks to correctly detecting all boolean-like values. This also adds an
always_do
option toadd_operation
, which allows an operation to be run regardless of prior filters. This can be useful for adding cleanup functions at the ends of pipelines.PR Checklist