-
Notifications
You must be signed in to change notification settings - Fork 359
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
Is EventManagerCoherent.write_to_hdf()
doing what we want?
#4632
Labels
PyGRB
PyGRB development
Comments
Using the
There are a few weird things here:
|
This would also take care of: #4416 |
The gating and |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In #4550 we noticed that the
write_to_hdf()
method ofEventManagerCoherent
does something unexpected with some of the properties of the templates. Specifically, it writes some of the template properties into each detector's dataset, instead of thenetwork
dataset. Here it does so for the template duration. Here it does it again for the template hash.Now that I look closer at that method, I think there is an indentation bug throughout it, combined with an incorrect use of the
f.prefix
attribute. This would cause the HDF file to contain datasets like<detector>/search/time_slides
while (I think) what we want is justsearch/time_slides
. The lines that create thesearch/*
andgating/*
datasets should be outside the "Individual ifo stuff" loop, and there should be af.prefix = ''
before them.Apparently a similar issue was noted in #2812, though not really fixed?!
More broadly, I think that method is long and complex and would benefit from being split into calls to shorter sub-methods.
The text was updated successfully, but these errors were encountered: