traveler.skims.omx.OMX.change_mode#

OMX.change_mode(mode, **kwarg)[source]#

Change the file mode of the underlying HDF5 file.

Can be used to change from read-only to read-write.

Parameters:

mode ({'r','a'}) – The file mode to set. Note that the ‘w’ mode, which would open a blank HDF5 overwriting an existing file, is not allowed here.

Return type:

self