larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

read_hdf opens file in RW instead of read-only #980

Closed gdementen closed 2 years ago

gdementen commented 3 years ago

I think changing the line:

    with LHDFStore(filepath_or_buffer) as store:

to:

    with LHDFStore(filepath_or_buffer, mode='r') as store:

should be enough to fix this.