-
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
Debug the use of relative links #46
Conversation
Currently, references/links use the path provided by the user to ZarrIO as the source path for the current file. Because of this, links can break even without moving the data to another system. If we create the file with a relative path (e.g., just the filename Instead of listing |
…function to resolve relative paths on read
@mavaylon1 can you check on the failing test pipelines. There was an error in
I think this may be same error with tox4 that @rly fixed for PyNWB in this PR NeurodataWithoutBorders/pynwb#1608 For (at least some of) the failing 3.7 tests it looks like the gallery tests are failing because the gallery files are not found. Maybe there is an issue with setting the working directory in the pipeline? |
Codecov ReportBase: 82.11% // Head: 82.15% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev #46 +/- ##
==========================================
+ Coverage 82.11% 82.15% +0.03%
==========================================
Files 9 9
Lines 2360 2365 +5
==========================================
+ Hits 1938 1943 +5
Misses 422 422
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@oruebel I merged the pipeline updates but for some reason the paths are throwing errors still with the windows path using "\" instead of "/". I'll continue to dig around and hopefully can get this resolved by the end of tomorrow for a release this week. |
@mavaylon1 thanks for taking a look at this and for keeping me posted |
@rly I've fixed the user warnings issue in the gallery tests and updated to use test_gallery.py. However, now I am faced with the original issue again of certain docs not being able to be found. I've printed out the files in the list test_gallery.py iterates over and the files are there. What is weird is that the two files consist of one old doc and one new doc. |
What is weird is that it is the addition of plot_nwb_zarrio.py that throws the path issues. When you remove it, plot_zarr_datasetio.py can be found and plot_convert_nwb.py can also be found and returns an error regarding hdmf build (tbd later) |
If we use test.py --example in tox.ini instead of test_gallery.py then the gallery-3.10 tests pass which are required but not the 3.7. We could merge using the test.py --example and create another PR to update and figure out the issue of the gallery tests that are not required. That way the fix isn't held up. I'll also note running python test.py --example passes in my python 3.7 environment but not here. |
Since we know this is only an issue of the test pipeline. I think we could merge this PR and do the release and fix the pipeline in a separate PR. |
I'll review the PR today and we can merge before the day is over. I'll set up the separate PR for the gallery. |
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.
Removed test_gallery,py to keep it reserved for the upcoming PR.
Thanks guys! It works perfectly on our side! |
That is great to hear! |
Fix #44