-
Notifications
You must be signed in to change notification settings - Fork 356
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
PyGRB postprocessing: segment writing/loading #4542
Conversation
seg_list.append(segments.segment(seg_starts[i], seg_ends[i])) | ||
|
||
# Write segment_dict in proper format | ||
# At the moment of this comment, there is only one segment |
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.
Can you try it with more than one segment?
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.
The segments in this context refer to the segments analyzed in pycbc_multi_inspiral
. In the coh_ptf code the segments were defined in a more complicated way based on long time slides. We don't have that functionality for pycbc_multi_inspiral
at this point, so the result of this function is a dictionary of one slide with the full analysis chunk (since it coalesces the smaller segments into one). Having multiple segments would imply a gap in the data in the current state of the code.
I suppose the functions here are mostly redundant if we're not doing long slides. This function is where the original code set up this structure. The output gets written into the XML file which the load_segment_dict
function here was meant to read. I attempted to emulate this to achieve the same result.
Co-authored-by: Francesco Pannarale <[email protected]>
* Try fixing load_segment_dict * Use segments/GPS time API more correctly * Use h5py correctly * Codeclimate * Add comment * condense segment list creation Co-authored-by: Francesco Pannarale <[email protected]> * Plural start/end time in file output * Codeclimate --------- Co-authored-by: Francesco Pannarale <[email protected]>
* Try fixing load_segment_dict * Use segments/GPS time API more correctly * Use h5py correctly * Codeclimate * Add comment * condense segment list creation Co-authored-by: Francesco Pannarale <[email protected]> * Plural start/end time in file output * Codeclimate --------- Co-authored-by: Francesco Pannarale <[email protected]>
* Try fixing load_segment_dict * Use segments/GPS time API more correctly * Use h5py correctly * Codeclimate * Add comment * condense segment list creation Co-authored-by: Francesco Pannarale <[email protected]> * Plural start/end time in file output * Codeclimate --------- Co-authored-by: Francesco Pannarale <[email protected]>
* Try fixing load_segment_dict * Use segments/GPS time API more correctly * Use h5py correctly * Codeclimate * Add comment * condense segment list creation Co-authored-by: Francesco Pannarale <[email protected]> * Plural start/end time in file output * Codeclimate --------- Co-authored-by: Francesco Pannarale <[email protected]>
* Try fixing load_segment_dict * Use segments/GPS time API more correctly * Use h5py correctly * Codeclimate * Add comment * condense segment list creation Co-authored-by: Francesco Pannarale <[email protected]> * Plural start/end time in file output * Codeclimate --------- Co-authored-by: Francesco Pannarale <[email protected]>
* Try fixing load_segment_dict * Use segments/GPS time API more correctly * Use h5py correctly * Codeclimate * Add comment * condense segment list creation Co-authored-by: Francesco Pannarale <[email protected]> * Plural start/end time in file output * Codeclimate --------- Co-authored-by: Francesco Pannarale <[email protected]>
* Try fixing load_segment_dict * Use segments/GPS time API more correctly * Use h5py correctly * Codeclimate * Add comment * condense segment list creation Co-authored-by: Francesco Pannarale <[email protected]> * Plural start/end time in file output * Codeclimate --------- Co-authored-by: Francesco Pannarale <[email protected]>
This PR is another step in completing #4419. The
load_segment_dict
function returns the segments analyzed in the PyGRB analysis. The original code set up analysis segments differently for long time slides. Those have not been implemented (yet?) so here it is simpler. I had to add some writing of segments topycbc_multi_inspiral
to get this to work.