yumorishita / LiCSBAS2

GNU General Public License v3.0
26 stars 4 forks source link

KeyError: "Unable to open object (object 'mask' doesn't exist)" in LiCSBAS_plot_ts.py #35

Closed yumorishita closed 1 year ago

yumorishita commented 1 year ago

LiCSBAS_plot_ts.py ver1.14.0 20230219 Y. Morishita LiCSBAS_plot_ts.py -i cum.h5

Reading cum.h5 Reading mask Traceback (most recent call last): File "/home/morishita/software/LiCSBAS2/bin/LiCSBAS_plot_ts.py", line 408, in mask_vel = cumh5['mask'][()]


  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "/home/morishita/software/pyenv/versions/licsbas2-3.11/lib/python3.11/site-packages/h5py/_hl/group.py", line 328, in __getitem__
    oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5o.pyx", line 190, in h5py.h5o.open
KeyError: "Unable to open object (object 'mask' doesn't exist)"
yumorishita commented 1 year ago

--nomask option can avoid the error.