-
Notifications
You must be signed in to change notification settings - Fork 189
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
Extend and refactor waveform metrics #1993
Extend and refactor waveform metrics #1993
Conversation
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 did a partial update of some of the docstrings (a few typos and added in the sampling_frequency parameter into the parameters section, but maybe there was a reason why you didn't want them so feel free to delete those they are not needed.
Thanks @zm711 Aplied the suggested changes. @samuelgarcia @h-mayorquin good to merge |
@@ -2016,6 +2032,9 @@ def set_params(self, **params): | |||
params = self._set_params(**params) | |||
self._params = params | |||
|
|||
if self.waveform_extractor.is_read_only(): |
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.
Maybe we should run error instead no ?
set_params on read only should be allowed.
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.
It is allowed, but only in mem in this case
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.
henestly set_params to a read only should be not aalowed.
What is the use here ?
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.
It skips saving to disk!
sparsity: Optional[ChannelSparsity] = None, | ||
include_multi_channel_metrics: bool = False, | ||
metrics_kwargs: dict = None, | ||
debug_plots: bool = False, |
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 am OK to have debug_plot inside the code at the tricky places but I would avoid this in the signauture
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.
Ok, I can remove it and set it as a flag on top of the file
Implemented additional metrics:
Single-channel
Multi-channel
Closes #1185