-
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
Add test_gallery.py and debug python_3.7 gallery tests #53
Conversation
Codecov ReportBase: 82.15% // Head: 80.59% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev #53 +/- ##
==========================================
- Coverage 82.15% 80.59% -1.57%
==========================================
Files 9 10 +1
Lines 2365 2437 +72
==========================================
+ Hits 1943 1964 +21
- Misses 422 473 +51
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. |
|
The user warning that |
The strange thing is though, that this particular warning does not seem to happen on ReadTheDocs https://hdmf-zarr.readthedocs.io/en/dev/tutorials/plot_convert_nwb_hdf5.html Which version of PyNWB are you using? I'm just wondering whether this a new check on the dev branch of PyNWB so that you are seeing it on your system but it does not yet appear when using the release version of PyNWB. |
This reverts commit 3d48d08.
This line at the end of hdmf-zarr/docs/gallery/plot_nwb_zarrio.py Line 155 in 6841196
changes the current directory of the Python execution which messes up finding the other gallery files. I would suggest changing the current directory back at the end of that script. This does not happen in @oruebel The warning was added in PyNWB 2.1.1: NeurodataWithoutBorders/pynwb#1516 |
I think it is fine to move to using |
Good catch! To be honest, this part of the script hdmf-zarr/docs/gallery/plot_nwb_zarrio.py Lines 144 to 158 in 6841196
should actually be changed to a unit instead. The reason for changing the current directory here was because I was debugging the issue with links and changing the current directory was a way to trigger the issue without copying files. For now, I would suggest the following: 1) Remove those lines from the gallery, 2) Open an issue to add a test for this case, basically trimming down the notebook and making it into a unit test, and 3) actually implement the unit test. |
I have now removed the problematic lines from the |
If I downgrade to pynwb 2.1.0 the gallery tests pass. This seems to be a new warning/error coming from pynwb 2.2.0. For now I can downgrade pynwb to be greater than 2.0.0 but less than or equal to 2.1.0. That way we can merge test_gallery and look create a ticket for debugging the tutorials to whatever pynwb 2.2.0 needs. @oruebel |
Just to clarify, are you referring to the following warning:
or are there other warnings/errors? This particular warning is due to an error in the NWB file from DANDIset hdmf-zarr/docs/gallery/plot_convert_nwb_hdf5.py Lines 17 to 18 in 6841196
The file is using the |
@oruebel |
@mavaylon1 #56 fixes the issue in conversion tutorial and another bug in the ZarrIO tutorial. |
I'll take a look at the windows gallery since it is throwing an error not related to the tutorial you updated. However, the sphinx test for external links is throwing an error due to the updated conversion tutorial. @oruebel |
@mavaylon1 does the linkcheck run a different setup? It is strange that the tutorial is failing there but in none of the other checks. I'll take a look later today. |
It looks like some of the failures are due to DANDI download. Since the file is small, we could just add it to the repo and not download from DANDI here. |
…er names (#61) * Fix #60 Use local copy of NWB file to avoid use of special characters in folder names * Remove DANDI as dependency for the docs * Remove extraneous close calls for io objects closed automatically by with contexts * Update test.py and test_gallery.py scripts to set consistent working directory for scripts * Updated changelog
No description provided.