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

make quadrat statistics accept a numpy array as argument #58

Merged
merged 2 commits into from
Jul 26, 2020

Conversation

ljwolf
Copy link
Member

@ljwolf ljwolf commented Jul 17, 2020

This

  • runs black on quadrat_statistics.py
  • allows QStatistic to take a numpy array. When the input is a numpy array, the function converts it to a point pattern immediately.

@ljwolf
Copy link
Member Author

ljwolf commented Jul 17, 2020

The only substantive change is this if

@ljwolf ljwolf requested a review from weikang9009 July 17, 2020 15:15
@@ -384,7 +387,7 @@ class QStatistic:
simulation based inference. Default is 0
where no simulation based inference is
performed.

Attributes
----------
pp : :class:`.PointPattern`
Copy link
Member

Choose a reason for hiding this comment

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

Looking good! Can you also change the docstrings and maybe add a small example for the addition?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, docstring is easy. Where would you like the example?

@sjsrey sjsrey merged commit 26f9432 into pysal:master Jul 26, 2020
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