Skip to content
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

Use paths instead of io in pynwb.validate call #425

Merged
merged 5 commits into from
Dec 19, 2023
Merged

Conversation

rly
Copy link
Contributor

@rly rly commented Dec 19, 2023

Addresses issue in NeurodataWithoutBorders/pynwb#1777

In short, validate(paths=[nwbfile_path]) performs the expected behavior of validating against all cached namespaces in the file except for dependent ones and validate(io=io) does not. Changing validate(io=io) to perform the expected behavior would be a breaking change in pynwb. I think we should make that breaking change in pynwb as soon as possible, but given the urgency of the issue and that validate(paths=[nwbfile_path]) does the expected behavior, I think we should also change nwbinspector to use validate(paths=[nwbfile_path]) now.

@CodyCBakerPhD
Copy link
Collaborator

Ohhh I see - good idea! Thanks for the quick fix

@CodyCBakerPhD CodyCBakerPhD merged commit 7a40c96 into dev Dec 19, 2023
23 of 24 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the rly-patch-1 branch December 19, 2023 14:43
@rly rly mentioned this pull request Oct 2, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants