-
Notifications
You must be signed in to change notification settings - Fork 90
NWBHDF5IO: Don't check path if it is None #2130
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
NWBHDF5IO: Don't check path if it is None #2130
Conversation
We only need to check if the given path ends in .nwb if it is not None.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #2130 +/- ##
=======================================
Coverage 95.19% 95.19%
=======================================
Files 28 28
Lines 2849 2849
Branches 736 736
=======================================
Hits 2712 2712
Misses 83 83
Partials 54 54
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
pynwb 3.1.2 does currently always output a warning about a missing .nwb ending in path even if path was not passed at all and is None. This will be fixed in [1], ignore the warning until we require that version. We also drop the path argument to NWBHDF5IO as that is not needed. [1]: NeurodataWithoutBorders/pynwb#2130
oruebel
left a comment
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.
Looks good to me
stephprince
left a comment
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.
thanks @t-b!
pynwb 3.1.2 does currently always output a warning about a missing .nwb ending in path even if path was not passed at all and is None. This will be fixed in [1], ignore the warning until we require that version. We also drop the path argument to NWBHDF5IO as that is not needed. [1]: NeurodataWithoutBorders/pynwb#2130
We only need to check if the given path ends in .nwb if it is not None.
Close #2125