G-Node / nix

Neuroscience information exchange format
https://readthedocs.org/projects/nixio/
Other
66 stars 36 forks source link

Change the file opening... #610

Closed jgrewe closed 8 years ago

jgrewe commented 8 years ago

... so far, we just opened any h5 file and in the case of a non-nix h5 file opened in read-only mode we ran into runtime exceptions when trying to create data and metadata groups. Basically the same things happened in the file-backend. In read-write and read-only modes we now check if we are going to work with a nix file otherwise an InvalidFile exception is thrown.