-
Notifications
You must be signed in to change notification settings - Fork 6
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
Append References #203
Append References #203
Conversation
@rly take a look. We need to merge the PR for zarr optional first, then the HDMF ticket related to this, then this. If you also agree with my approach to the paths (Even though it is a little hacky, I can't think of a better way given our conversation over slack), then I can wrap this up with tests tomorrow. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #203 +/- ##
==========================================
- Coverage 86.05% 83.73% -2.33%
==========================================
Files 5 5
Lines 1162 1174 +12
Branches 287 289 +2
==========================================
- Hits 1000 983 -17
- Misses 107 134 +27
- Partials 55 57 +2 ☔ View full report in Codecov by Sentry. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #203 +/- ##
==========================================
+ Coverage 86.79% 87.11% +0.31%
==========================================
Files 5 5
Lines 1159 1172 +13
Branches 285 286 +1
==========================================
+ Hits 1006 1021 +15
+ Misses 101 100 -1
+ Partials 52 51 -1 ☔ View full report in Codecov by Sentry. |
Review Notes: The ruff ignores are because changing it to "is" returns errors, i.e., the functionality changes for whatever reason. We can update this if we want, but not in this PR and it would be the lowest of priorities. |
Adding the new check raises this error when calling
@mavaylon1 could you please look into this? |
@rly This is done. |
@rly I made the changes. The main thing is to take a look at my notes. Your comment "the parent of the new child has not been built" is weird since the prior code said to build the parent. I assumed you meant the parent of the child could not be the root, leaving the path to the child being possibly incorrect if nested. To ensure a proper path to the child for the reference, we need to build the root. Let me know if that is what you meant. I added a loop to do so. I did not add a nested test. If we really want one we can do so in a followup PR, but I think I want to explore the proxy idea in case that replaces this. |
Motivation
What was the reasoning behind this change? Please explain the changes briefly.
This is in conjunction with hdmf-dev/hdmf#1135
We want to support appending a dataset of references.
How to test the behavior?
Checklist
ruff
from the source directory.