-
Notifications
You must be signed in to change notification settings - Fork 12
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
Omniscape fails on specific row / column: AssertionError #155
Comments
Thanks for opening a new issue. Okay, it looks like I missed some places where I needed to increase the error tolerance. I'll do that this evening, and we'll release a patch to Circuitscape shortly thereafter. |
I've got a PR in for Circuitscape. It might take a few days for it to be reviewed, merged, and released. You can follow along here: Circuitscape/Circuitscape.jl#410 |
Fantastic, thank you! Looking forward to testing the next release. |
@geomenke the new version of Circuitscape has been released, thanks for your patience! You'll want Circuitscape v5.13.3. hopefully that resolves this problem. I'll leave this issue open until I get confirmation from you. |
Thanks @vlandau - I am running my model again now. I'll let you know either way. |
@vlandau this has solved the problem. I have run several iterations of the model with different settings and each one has finished successfully. |
Great! I'm going to close this issue as solved. So glad it's working! |
I originally mistakenly posted this to Issue: #122 but seems it should be a separate issue.
I receive this error: ERROR:
AssertionError: norm(matrix * lhs[:, i] .- rhs[:, i]) / norm(rhs[:, i]) < 1.0e-6
. It was suggested that I update my version of Omniscape. I have now tried Circuitscape v5.13.2 and Omniscape v0.6.1, but it failed again with a similar stacktrace as before (below).I am using
source_from_resistance=true
.The row and column are not always the same. This may be due to the order in which the windows are solved being random. However, they are always pixels I have set to high resistance values. I have buffered primary highways as barriers. These barriers regions are quite narrow (10 pixels wide) while I am using a
radius
of 300 pixels. I have tried setting these barrier pixels as high resistance values, or no data values, or missing viareclassify_resistance
.I have tried clipping the raster to a smaller neighborhood around the row and column but larger than the
radius
and it runs fine.The text was updated successfully, but these errors were encountered: