-
Notifications
You must be signed in to change notification settings - Fork 84
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
Support Object IDs in NWBFile #991
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #991 +/- ##
==========================================
+ Coverage 72.29% 72.37% +0.07%
==========================================
Files 36 36
Lines 2718 2722 +4
Branches 513 514 +1
==========================================
+ Hits 1965 1970 +5
+ Misses 632 627 -5
- Partials 121 125 +4
Continue to review full report at Codecov.
|
@oruebel |
@sgratiy I'm not sure its a good idea to give folks the option to change object_id. The intend of object_id is to provide a unique identifier for data. The object_id is not a hash of the data, but data that is generated at different times (i.e., even if you make a copy) are and should be considered different for the purpose of the object_id. I am afraid that allowing folks to set object_id will cause more trouble than benefit. If I understand your use-case correctly what you are doing is:
I think for this specific use-case of regression testing it will be best to fix the issue in the regression test itself. A few possible solutions may be:
|
@oruebel Yes, you correctly interpreted my use case. The --exclude-path option in h5diff does not apply for attributes. Thanks for a detailed response and outlining possible solutions. I truly appreciate it. I have decided to go with the monkey patching suggestion as it was the easiest to implement. This solution will work for me, but I am still not quite sure about your statement
|
It identifies a specific object in a specific file.
The problem with data hash is that you can easily have different data with the same hash. Also, generating a good hash for large data is time consuming. A data hash and object_id serve different purposes. |
Motivation
Fix #989
Checklist
flake8
from the source directory.#XXX
notation whereXXX
is the issue number ?