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

Repair Priority is very Slow #8

Open
slibby opened this issue Aug 9, 2018 · 1 comment
Open

Repair Priority is very Slow #8

slibby opened this issue Aug 9, 2018 · 1 comment

Comments

@slibby
Copy link
Collaborator

slibby commented Aug 9, 2018

For any area with a substantial number of points needing repair (SL for example), Repair Priority is very slow as it runs at no more than 1 pt/ 3seconds. Will need to look into the iteration in the script to see if it can be improved.

https://github.com/dcgull/WPDx-Toolset/blob/master/WPDx_Toolset.pyt#L366 is where to start.

@dcgull
Copy link
Owner

dcgull commented Sep 28, 2018

Right now we iterate through points one by one because ZonalStatisticsAsTable doesn't work when the zones overlap each other. Should be possible to speed this up by running ZonalStatisticsAsTable on all the non-overlapping water points first, then only going through the remainder one-by-one.

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