Skip to content
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

Add SNR check to foreground when plotting and fix paths #317

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

wbenoit26
Copy link
Contributor

No description provided.

@wbenoit26 wbenoit26 requested a review from EthanMarx November 19, 2024 19:59
@EthanMarx
Copy link
Contributor

Looks good - can we also add a logging statement with the amount of injections that were bad?

@wbenoit26
Copy link
Contributor Author

Yeah, good idea

foreground = foreground[foreground.snr < 1e4]
mask = foreground.snr > 1e4
num_unphysical = sum(mask)
if num_unphysical > 0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for nit pick, but I dont think we even need the if statement here right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I felt like this was the kind of logging statement that could cause confusion if it reported 0 waveforms removed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good

@wbenoit26 wbenoit26 merged commit 60fd134 into ML4GW:main Nov 19, 2024
4 checks passed
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