-
Notifications
You must be signed in to change notification settings - Fork 358
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
Use HFile instead of h5py.File in most places #4792
Use HFile instead of h5py.File in most places #4792
Conversation
Note that I haven't touched |
I have also avoided live (due to efficiency worries) and inference, so as not to interfere with the h5py.File wrapper used there |
8193f25
to
f9e6d03
Compare
f9e6d03
to
a6b54b6
Compare
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'm okay with this, any issues @ahnitz ?
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.
Yeah, I don't have a problem with this.
* Move to HFile in pycbc_add_statmap * Move to HFile in pycbc_apply_rerank * update all-sky psd code * Move pycbc_coinc_(findtrigs,hdfinjfine,mergetrigs) to HFile * More places with HFile * More moves * Use HFile in more places * Use HFile in more places * Use HFile in more places * Use HFile in more places * Use HFile in more places * Use HFile rather than h5py.File in bank * move live executables to use HFile * Use HFile in live examples * Move minifollowups to use HFile * Move populations to use HFile * Move banksim codes to use HFile * Start to move plotting codes to use HFile * Finish moving plotting codes to use HFile * Move scripts in /bin/ to use HFile * Move bin/workflow_comparisons/offline_search codes to use HFile * Use HFile in pycbc/events * Moving more parts of pycbc/ to use HFile * Use HFile for other things in pycbc/io/hdf * Use HFile in pygrb codes * Revert "Use HFile in pycbc/events" This reverts commit 99dce9d. * Missed removal of imports * Remove HFile from types/array * Remove HFile from pycbc/types
* Move to HFile in pycbc_add_statmap * Move to HFile in pycbc_apply_rerank * update all-sky psd code * Move pycbc_coinc_(findtrigs,hdfinjfine,mergetrigs) to HFile * More places with HFile * More moves * Use HFile in more places * Use HFile in more places * Use HFile in more places * Use HFile in more places * Use HFile in more places * Use HFile rather than h5py.File in bank * move live executables to use HFile * Use HFile in live examples * Move minifollowups to use HFile * Move populations to use HFile * Move banksim codes to use HFile * Start to move plotting codes to use HFile * Finish moving plotting codes to use HFile * Move scripts in /bin/ to use HFile * Move bin/workflow_comparisons/offline_search codes to use HFile * Use HFile in pycbc/events * Moving more parts of pycbc/ to use HFile * Use HFile for other things in pycbc/io/hdf * Use HFile in pygrb codes * Revert "Use HFile in pycbc/events" This reverts commit 99dce9d. * Missed removal of imports * Remove HFile from types/array * Remove HFile from pycbc/types
Use pycbc.io.hdf's HFile class rather than h5py.File directly so that we can make changes to the functionality.
For example checksumming, version information, and anything else we may want
Standard information about the request
This is a change to utilise potential future features
This change touches everywhere in the code, but affects nothing
This change follows style guidelines (See e.g. PEP8), has been proposed using the contribution guidelines
Contents
Not quite find-and-replace, but update everywhere which uses h5py.File to pycbc.io.HFile
Links to any issues or associated PRs
#1525 #4768
Testing
Broadly, this should be checked by the CI running
--help
for all executables