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

Fixed allocating a large amount of memory with pixel coordinates #45

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

vzagorovskiy
Copy link
Contributor

Fixed allocating a large amount of memory with pixel coordinates for the whole image at once.

Issue addressed

Fixes #44

Explanation

FlwdirRaster.stream crashed on a huge rasters on a machine with 16 GB or less

Checklist

  • [ x ] Updated tests or added new tests
  • [ x ] Branch is up to date with main
  • [ x ] Updated documentation if needed
  • [ x ] Updated CHANGELOG.rst if needed

Additional Notes (optional)

Tests showed successful work on large images, the speed of work on small images has not changed. The changes do not break the current program logic and do not require additional changes in the existing code.

image

image

Copy link
Contributor

@DirkEilander DirkEilander left a comment

Choose a reason for hiding this comment

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

Many thanks for this contribution @vzagorovskiy. I think it looks excellent and is ready to be merged.

@DirkEilander DirkEilander merged commit af9886d into Deltares:main Dec 19, 2024
6 checks passed
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.

FlwdirRaster.stream crashed on a ~44000x20000 raster on a machine with 16 GB or less
2 participants