Closed stephprince closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.20%. Comparing base (
570fb3b
) to head (c69688c
). Report is 17 commits behind head on dev.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@stephprince It may be informative to have a distinction between an old file and an invalid file. I think having a warning plus the return false would be better for old files.
@mavaylon1 added some warnings for when the file can be read by h5py but not PyNWB
Thanks for working on this guys.
Motivation
Fix #1919. The
can_read
method would previously throw a TypeError if no nwbfile version was found. It now returnsFalse
instead.I also added additional tests for
can_read
to improve code coverage.How to test the behavior?
Checklist
ruff check . && codespell
from the source directory.