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

Issue with tqdm_dask and dask.persist in Phase and Correlation Computation #205

Open
Jamestony2460 opened this issue Feb 19, 2025 · 1 comment

Comments

@Jamestony2460
Copy link

Hi, I’m trying to implement the following part of the code:

"# compute together because correlation depends on phase, and filtered phase depends on correlation.
tqdm_dask(result := dask.persist(decimator(corr), decimator(intf)), desc='Compute Phase and Correlation')"

The issue I’m facing is that the execution takes around 1.5 hours but doesn’t complete. Instead, it eventually fails with the following error:

"ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"

It seems to be related to dask.persist and decimator(corr)/decimator(intf), but I’m unsure how to resolve it. Could you please guide me on how to fix this? Thanks in advance!

@AlexeyPechnikov
Copy link
Owner

Please refer to the examples when it works. Also, you can use the functions Stack.compute_interferogram_singlelook() and Stack.compute_interferogram_multilook() if you don't want to perform the step-by-step processing and just need to build interferograms.

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