Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@weikang9009
Copy link
Member

This PR is to fix an error and missing attributes for quadrat-based statistics:

  • and should be used instead of & as the logical operator between two float numbers
  • rectangle_width and rectangle_height are attributes of RectangleM but are missing in the docstrings
  • add positional arguments rectangle_width and rectangle_height to the constructor method of QStatistic to allow users to pass width and height of the grid cells in addition to the number of cells

@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Merging #104 (b987685) into main (af7ac57) will increase coverage by 0.27%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##             main     #104      +/-   ##
==========================================
+ Coverage   52.47%   52.74%   +0.27%     
==========================================
  Files          12       12              
  Lines        1841     1841              
  Branches      315      315              
==========================================
+ Hits          966      971       +5     
+ Misses        819      815       -4     
+ Partials       56       55       -1     
Impacted Files Coverage Δ
pointpats/quadrat_statistics.py 59.13% <75.00%> (+2.68%) ⬆️

@ljwolf ljwolf merged commit eb1f015 into pysal:main May 24, 2023
@ljwolf
Copy link
Member

ljwolf commented May 24, 2023

Good fix @weikang9009!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants