Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open object (object 'mask' doesn't exist) #361

Closed
mirzawaqar opened this issue May 28, 2024 · 3 comments
Closed

Unable to open object (object 'mask' doesn't exist) #361

mirzawaqar opened this issue May 28, 2024 · 3 comments

Comments

@mirzawaqar
Copy link

While displaying the time series of the displacement and velocity I am getting the following error. Kindly guide how to fix it.

user@user31:/media/hdd3/RD003_Land_Deformation_Mapping/Pakistan/Lahore/SBAS$ LiCSBAS_plot_ts.py -i TS_GEOCml1_GACOS_masked_clip/cum.h5 &
[1] 821042
contec@contec31:/media/hdd3/RD003_Land_Deformation_Mapping/Pakistan/Lahore/SBAS$
LiCSBAS_plot_ts.py ver1.14.0 20230219 Y. Morishita
LiCSBAS_plot_ts.py -i TS_GEOCml1_GACOS_masked_clip/cum.h5

Reading TS_GEOCml1_GACOS_masked_clip/cum.h5
Reading mask
Traceback (most recent call last):
File "/home/contec/Softwares/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/contec/Softwares/anaconda3/envs/licsbas/lib/python3.12/site-packages/h5py/_hl/group.py", line 357, 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 241, in h5py.h5o.open
KeyError: "Unable to open object (object 'mask' doesn't exist)"

@yumorishita
Copy link
Owner

I am not sure but maybe the cum.h5 is corrupted or incomplete.

@mirzawaqar
Copy link
Author

Got it. I re-run and the problem was resolved.

@xbdqs
Copy link

xbdqs commented Jun 19, 2024

I also meet this issue, but I don't konw what happen. I hanve try to the LiCSBAS2 and re-run, but It hasn't improved yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants