-
Notifications
You must be signed in to change notification settings - Fork 241
Valid unit periods extension #4299
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
Conversation
|
Depends on #4302 |
for more information, see https://pre-commit.ci
|
|
||
| def _merge_extension_data( | ||
| self, merge_unit_groups, new_unit_ids, new_sorting_analyzer, censor_ms=None, verbose=False, **job_kwargs | ||
| ): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add here a comment for the strategy of merging period so that the code will be easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment in the user defined section. I think it's ok since no-one will ever check the docstring for this
| job_name = f"computing false positives and negatives" | ||
|
|
||
| # parallel | ||
| with ProcessPoolExecutor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to be carrfull with th use of ProcessPoolExecutor.
on window this imply spawn and so datta duplication here this will be sorting + amplitudes duplicated
in case of a spwan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then we should make a base executor. We have the same issue in other extensions...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's do it in a separate PR
|
Revised, @samuelgarcia @chrishalcrow can you take a final look? We can discuss on the merge strategy with user defined periods, but I think union is a good choice (see my comment) |
| ) | ||
| ) | ||
|
|
||
| user_defined_periods = cast_periods_to_unit_period_dtype(user_defined_periods) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
niiiice
for more information, see https://pre-commit.ci
|
Impressive and complicated PR! I push some test for the remapping low level code. |
Implements #4294