Skip to content

Refactor ssp_process_traces #35

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

Merged
merged 7 commits into from
Apr 11, 2023
Merged

Refactor ssp_process_traces #35

merged 7 commits into from
Apr 11, 2023

Conversation

claudiodsf
Copy link
Member

@claudiodsf claudiodsf commented Apr 6, 2023

While trying to catch a bug, I realized that the code in ssp_process_traces.py (and some other functions in other files) was quite hard to understand.

I therefore tried to split it into smaller functions.

I also caught a rare bug in plotting time windows, in the process 😄

Hopefully, I didn't break anything. But, since some of the code I moved around is @krisvanneste's, I prefer that --Kris-- you make some check. Thanks!

@krisvanneste
Copy link
Collaborator

I will try to test before leaving on holiday!

@krisvanneste
Copy link
Collaborator

Claudio,

I ran 2 tests. I obtain slightly different Mw values, but these are likely due to a new default value for t_star_min_max.
The SNR values reported in the log are identical, so I suppose the new code works as expected.

@claudiodsf
Copy link
Member Author

Thank you Kris for this quick test!
I'll merge later today or next week.

Have a nice Easter holiday! 🐣

This happened in certain cases when using `spectral_win_length`
@claudiodsf claudiodsf force-pushed the refactor_process_traces branch from 6f1f4de to 7245cb7 Compare April 11, 2023 07:55
@claudiodsf claudiodsf merged commit 6fa9549 into main Apr 11, 2023
@claudiodsf claudiodsf deleted the refactor_process_traces branch April 11, 2023 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants