8000 Resolve issue of "False" "id_order_set" when building contiguity weights from shapefile even if `idVariable` is given in initialization by weikang9009 · Pull Request #988 · pysal/pysal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Resolve issue of "False" "id_order_set" when building contiguity weights from shapefile even if idVariable is given in initialization #988

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

Merged
merged 1 commit into from
Oct 5, 2017

Conversation

weikang9009
Copy link
Member

Resolve issue of id_order_set being "False" when building contiguity weights from shapefile even if idVariable is given in initialization:
image
This is not true for functions building knn weights (idVariable=True):
image
False id_order_set causes errors when spatial weight is a parameter in some pysal functions such as Spatial_Empirical_Bayes which requires a "True" id_order_set:
image
The changes in smoothing.py deals with this issue by setting id_order_set as "True" when idVariable is assigned a value in building contiguity weights (rook and queen) from shapefile.

@coveralls
Copy link
coveralls commented Oct 5, 2017

Coverage Status

Coverage increased (+0.002%) to 83.769% when pulling 61beded on weikang9009:master into c9c7471 on pysal:master.

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
0