-
Notifications
You must be signed in to change notification settings - Fork 195
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
Handle ms_before and ms_after difference between waveforms and template extensions #2878
base: main
Are you sure you want to change the base?
Conversation
if ms_before != ms_before_waveforms or ms_after != ms_after_waveforms: | ||
raise ValueError( | ||
"templates extension parameters are inconsistent with the waveforms extension. \n" | ||
f"waveform extension ms_before={ms_before_waveforms} ms_after={ms_after_waveforms} \n" | ||
f"templates extension ms_before={ms_before} ms_after={ms_after}." | ||
) | ||
|
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 think I prefered the previous behavior:
- use parameters when compute directly
- ignore parameters and hinertis from waveforms extension when this exists.
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.
Agree with @samuelgarcia 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.
I think privilegin the waveform is a fine default but you should let users know this otherwise they will be confused like me . My other proposal above was a warning when they don't match. What do you think?
@h-mayorquin after discussing with Sam, we think it's ok that waveforms control the ms_before/after, let's just be clearer with this in the docs without too many warnings |
All right. Where should this behavior be written? |
@h-mayorquin adding a comment here in the |
They might be different, we can either raise an error like here or change to a warning and priviledge the ones of the waveform as we are doing right now.
What do you guys think?