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

Error encountered while running the LiCSBAS_plot_ts.py script #65

Closed
stallinbhandari opened this issue Feb 4, 2021 · 5 comments
Closed

Comments

@stallinbhandari
Copy link

here is the kind of error i get while i rung the LiCSBAS_plot_ts.py -i TS_GEOCml1clip/cum_filt.h5 &

LiCSBAS_plot_ts.py ver1.13.2 20210126 Y. Morishita
LiCSBAS_plot_ts.py -i TS_GEOCml1clip/cum_filt.h5
Error--------------------------------------------------------------------------------
Reading TS_GEOCml1clip/cum_filt.h5
Traceback (most recent call last):
File "/home/stu/licsbas/LiCSBAS/bin/LiCSBAS_plot_ts.py", line 363, in
refx1, refx2, refy1, refy2 = [int(s) for s in re.split('[:/]', refarea)]
File "/usr/lib/python3.8/re.py", line 231, in split
return _compile(pattern, flags).split(string, maxsplit)
TypeError: cannot use a string pattern on a bytes-like object

@yumorishita
Copy link
Owner

This seems to be similar issue to #40.

Can you type following commands and show me the output?

python3
>>> import h5py
>>> print(h5py.File('cum_filt.h5','r')['refarea'][()])

Also please tell me about your environment (e.g., OS, $LANG).

As a temporary solution, perhaps the error can be avoided by editing the code:
refarea = cumh5['refarea'][()].decode('utf-8')

refarea = cumh5['refarea'][()]

@stallinbhandari
Copy link
Author

stallinbhandari commented Feb 4, 2021 via email

@stallinbhandari
Copy link
Author

stallinbhandari commented Feb 9, 2021 via email

@stallinbhandari
Copy link
Author

stallinbhandari commented Feb 9, 2021 via email

@yumorishita
Copy link
Owner

Duplicate of #67

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

2 participants