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

Fix out of order uw data from as_completed shuffling #28

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

scottstanie
Copy link
Contributor

I had been still getting the AssertionError: Arrays differ by non-integer cycles problem when trying to tile. I tracked this when I wrote out each spatial unwrapping result to a numpy array within the future, it perfectly matched the spurt CLI. But then the HDF5 saved data was different.

The cause: as_completed returns data out of order (possibly). This leads to random row shuffling of uw_data.

Still not quite sure how doing the single worker didn't fix this when we checked earlier.

(Also: I missed adding separate options to the CLI in the last PR)

`as_completed` returns data out of order (possibly). This leads to random row shuffling of `uw_data`
Copy link
Member

@piyushrpt piyushrpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@scottstanie scottstanie merged commit 1d33d05 into isce-framework:main Jul 16, 2024
1 check passed
@scottstanie scottstanie deleted the out-of-order-uw branch July 16, 2024 21:41
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

Successfully merging this pull request may close these issues.

3 participants