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

LiCSBAS_plot_ts.py -i TS_GEOC_CACOS/cum_filt.h5 #250

Open
sdlccug opened this issue May 24, 2023 · 32 comments
Open

LiCSBAS_plot_ts.py -i TS_GEOC_CACOS/cum_filt.h5 #250

sdlccug opened this issue May 24, 2023 · 32 comments

Comments

@sdlccug
Copy link

sdlccug commented May 24, 2023

'Traceback (most recent call last):
File "/mnt/rfchen/licSBSA/LiCSBAS-master/bin/LiCSBAS_plot_ts.py", line 890, in
printcoords(lastevent)
File "/mnt/rfchen/licSBSA/LiCSBAS-master/bin/LiCSBAS_plot_ts.py", line 773, in printcoords
ii = np.int(np.round(event.ydata))
^^^^^^
File "/mnt/rfchen/tools/miniconda3/envs/licsbas/lib/python3.11/site-packages/numpy/init.py", line 305, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'int'.
np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'inf'? '
It prompted me to lower the version of numpy, but after I did, I found that the lower version of numpy was not compatible with many other packages in the library
'RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem '
How should I solve this problem?

@yumorishita
Copy link
Owner

That bug was already fixed in LiCSBAS2: yumorishita/LiCSBAS2@1560f38#diff-377f64b0637de03d288a5eb69290a739c2cbfb382da7a96d1d860841959567f1L773-R776

Please use LiCSBAS2 or apply the same modification to your source code in LiCSBAS.

@irmayolii
Copy link

Hi Prof Yumorishita
I use putty and xming for show the plot, but error below:

LiCSBAS_plot_ts.py -i TS_GEOCml1GACOSmaskclip/cum_filt.h5

Reading TS_GEOCml1GACOSmaskclip/cum_filt.h5
Reading TS_GEOCml1GACOSmaskclip/cum.h5 as 2nd
Reading TS_GEOCml1GACOSmaskclip/results/mask as mask
Reading GEOCml1GACOSmaskclip/U.geo
Reading mask
Reading coh_avg
Reading n_unw
Reading vstd
Reading maxTlen
Reading n_gap
Reading stc
Reading n_ifg_noloop
Reading n_loop_err
Reading resid_rms
Reading slc.mli
Reading hgt
/home/sphere/tesis_irma/irmayoli/LiCSBAS/bin/LiCSBAS_plot_ts.py:504: DeprecationWarning: product is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use prod instead.
refvalue_vel = np.nanmean((velmask)[refy1:refy2+1, refx1:refx2+1])
/home/sphere/tesis_irma/irmayoli/LiCSBAS/bin/LiCSBAS_plot_ts.py:505: DeprecationWarning: product is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use prod instead.
vmin_auto = np.nanpercentile(vel
mask, 100-auto_crange)
/home/sphere/tesis_irma/irmayoli/LiCSBAS/bin/LiCSBAS_plot_ts.py:506: DeprecationWarning: product is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use prod instead.
vmax_auto = np.nanpercentile(velmask, auto_crange)
qt.qpa.xcb: X server does not support XInput 2
failed to get the current screen resources
/home/sphere/tesis_irma/irmayoli/LiCSBAS/bin/LiCSBAS_plot_ts.py:530: DeprecationWarning: product is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use prod instead.
data = vel
mask-np.nanmean((vel*mask)[refy1:refy2+1, refx1:refx2+1])
Traceback (most recent call last):
File "/home/sphere/tesis_irma/irmayoli/LiCSBAS/bin/LiCSBAS_plot_ts.py", line 586, in
RS = RectangleSelector(axv, line_select_callback, drawtype='box', useblit=True, button=[3], spancoords='pixels', interactive=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: RectangleSelector.init() got an unexpected keyword argument 'drawtype'

@yumorishita
Copy link
Owner

yumorishita commented Jul 11, 2023

What is the version of matplotlib? Please try downgrading it to e.g. 3.3.

@Sakina-A
Copy link

Sakina-A commented Jul 25, 2023

Hi Morishita

Am processing a new frame and all the steps have successfully finished. However, when I tried the command LiCSBAS_plot_ts.py -i TS_GEOCml1_02/cum_filt.h5 & I got an error saying: "Unable to open object (object 'vel' doesn't exist)"

vel

@yumorishita
Copy link
Owner

I guess you have not successfully finished step16.

@shubhayanroychowdhury
Copy link

shubhayanroychowdhury commented Nov 4, 2023

Hi @yumorishita
After downgrading the matplotlib, I got the same error.
image
image

I am using this software for a long time. I did not get any error like this. Suddenly today I got this error.
Please help me how to solve this problem and thank you for your time and consideration.

@yumorishita
Copy link
Owner

Maybe you did not downgrade the matplotlib in your "licsbas" venv.

@shubhayanroychowdhury
Copy link

shubhayanroychowdhury commented Nov 12, 2023

Hi @yumorishita
After downgrading the matplotlib in licsbas evn, I got this error.
image

@yumorishita
Copy link
Owner

Please see #250 (comment)

@adillahana
Copy link

Hi Prof Yumorishita,
Earlier I had a problem when plotting. Than I downgraded matplotlib to 3.3, but now i got an error as below:

LiCSBAS_plot_ts.py ver1.14.0 20230219 Y. Morishita

LiCSBAS_plot_ts.py -i TS_GEOCml1GACOSmaskclip/cum_filt.h5
Traceback (most recent call last):
File "/home/hana2024/home/hana/penelitian/LiCSBAS2/bin/LiCSBAS_plot_ts.py", line 248, in
cmap = tools_lib.get_cmap(cmap_name)
File "/home/hana2024/home/hana/penelitian/LiCSBAS2/LiCSBAS_lib/LiCSBAS_tools_lib.py", line 453, in get_cmap
mpl.colormaps.register(_cmap, name=cmap_name)
AttributeError: module 'matplotlib' has no attribute 'colormaps'

Nothing appears. How do I resolve this? Thank you Prof.

@yumorishita
Copy link
Owner

You should not downgrade matplotlib if you use LiCSBAS2.

@adillahana
Copy link

You should not downgrade matplotlib if you use LiCSBAS2.

I have upgraded matplotlib again. but I found problems like the following and nothing appears:

LiCSBAS_plot_ts.py ver1.14.0 20230219 Y. Morishita
LiCSBAS_plot_ts.py -i TS_GEOCml1GACOSmaskclip/cum_filt.h5

Reading TS_GEOCml1GACOSmaskclip/cum_filt.h5
Reading TS_GEOCml1GACOSmaskclip/cum.h5 as 2nd
Reading mask
Reading mask
Reading coh_avg
Reading n_unw
Reading vstd
Reading maxTlen
Reading n_gap
Reading stc
Reading n_ifg_noloop
Reading n_loop_err
Reading resid_rms
Reading slc.mli
Reading hgt

Thank you Prof

@yumorishita
Copy link
Owner

There is no error.

@sonyakkk
Copy link

Hi Mr. yumorishita

I want to do plotting, but when I try the command "LiCSBAS_plot_ts.py -i TS_GEOCml1clip/cum_filt.h5 &"
I got a message that my data was not found. Do you have any suggestions?
WhatsApp Image 2024-03-12 at 23 14 20_9c166f9d

@yumorishita
Copy link
Owner

It literally means that TS_GEOCml1clip/cum_filt.h5 does not exist. You must finish LiCSBAS processing first.

@MIEMESSI
Copy link

Dear Professor, what does this vel(1) and vel(2) mean
2NNQ9E84G} WKL1OEQ$ QOH

@yumorishita
Copy link
Owner

#117 (comment)

@Sakina-A
Copy link

Sakina-A commented May 3, 2024

Hello,
I have been trying to plot my results using LiCSBAS_plot_ts.py -i TS_GEOCml1_02_till2024/cum_filt.h5 & but I encountered the following error (attached pic). Is it because of my python version (3.10.13) or the LiCSBAS_plot_ts.py? I would be thankful if you could suggest a solution to this problem.

drawing

@yumorishita
Copy link
Owner

Please try #40 (comment)

@MIEMESSI
Copy link

Hello professor, I have encountered the following problem. It says that I do not have the slc.mli file. May I ask which step went wrong
image

@yumorishita
Copy link
Owner

It is not a problem and you can ignore it.

@MIEMESSI
Copy link

But i can't plot it

@yumorishita
Copy link
Owner

It is because of your environmental setting, not slc.mli.

@shubhayanroychowdhury
Copy link

But i can't plot it
Change your environment using this command
conda activate licsbas

@MIEMESSI
Copy link

如果使用 LiCSBAS2,则不应降级 matplotlib。

我再次升级了 matplotlib。但是我发现了如下问题,但没有任何显示:

LiCSBAS_plot_ts.py ver1.14.0 20230219 Y. Morishita LiCSBAS_plot_ts.py -i TS_GEOCml1GACOSmaskclip/cum_filt.h5

阅读 TS_GEOCml1GACOSmaskclip/cum_filt.h5 阅读 TS_GEOCml1GACOSmaskclip/cum.h5 作为第二阅读面罩 阅读面罩 阅读 coh_avg 阅读 n_unw 阅读 vstd 阅读 maxTlen 阅读 n_gap 阅读 stc 阅读 n_ifg_noloop 阅读 n_loop_err 阅读 resid_rms 阅读 slc.mli 阅读 hgt

谢谢教授

Have you solved it? I have the same problem as you

@as1234554321
Copy link

Hi Prof @yumorishita
I have been trying to plot my results using LiCSBAS_plot_ts.py -i TS_GEOCml1GACOSmaskclip/cum_filt.h5 but the result the following error
image

Do you have any suggestions?
thankyou

@yumorishita
Copy link
Owner

I have never seen such an error. Please upload the full log of the processing.

@as1234554321
Copy link

as1234554321 commented Sep 4, 2024

this the log
202409041526batch_LiCSBAS_01_16.log

@yumorishita
Copy link
Owner

It seems to be the same as DeepLabCut/DeepLabCut#2599. Please donwgrade matplotlib to <3.7.0 for the time being.

@as1234554321
Copy link

It seems to be the same as DeepLabCut/DeepLabCut#2599. Please donwgrade matplotlib to <3.7.0 for the time being.

Thank you sir for your help and suggestions

@as1234554321
Copy link

You should not downgrade matplotlib if you use LiCSBAS2.

but on this comment, if use licsbas2 should not downgrade matplotlib.
How do I downgrade matplotlib, do I have to uninstall the previous version ?

@yumorishita
Copy link
Owner

matplotlib 3.6.0 would be acceptable. How did you install it? conda? pip?

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

9 participants