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

L or other distance modules are not recognized #65

Closed
BMP-TUD opened this issue Sep 7, 2020 · 1 comment
Closed

L or other distance modules are not recognized #65

BMP-TUD opened this issue Sep 7, 2020 · 1 comment

Comments

@BMP-TUD
Copy link

BMP-TUD commented Sep 7, 2020

Hello,

Thank you very much for creating this package, it is amazing, but I have encountered a problem with it. I imported it as said in the documentation, I checked the requirements, all packages are satisfying them, and I am working with Python 3.7.7.. But still while calling pointpats.L(pp) Python says that there is no attribute L. Have someone encountered this problem? I have attached my import section and the code (not very long). Thank you for your help.

Greetings
Bartosz

import scipy.spatial import pointpats import libpysal as ps

pp=pointpats.PointPattern(points) L_Test=pointpats.L(pp)

Result:

`L_Test=pointpats.L(pp) :

AttributeError: module 'pointpats' has no attribute 'L'`

@ljwolf
Copy link
Member

ljwolf commented Sep 8, 2020

The distance-based statistics are now located at pointpats.distance_statistics. You may want to from pointpats import distance_statistics as stats and then use stats.L() or the new stats.l_test(), which should be documented in our geographicdata.science/book very soon 😄

@ljwolf ljwolf closed this as completed Jun 2, 2021
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