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

DOC: update docstrings to match numpy2 outputs #624

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion momepy/functional/_dimension.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def courtyard_area(geometry: GeoDataFrame | GeoSeries) -> Series:
Verify that at least some buildings have courtyards:

>>> ca.sum()
353.33274206543274
np.float64(353.33274206543274)
"""
return Series(
shapely.area(
Expand Down
2 changes: 1 addition & 1 deletion momepy/functional/_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def courtyard_index(
Length: 144, dtype: float64

>>> ci.max()
0.16605915738643523
np.float64(0.16605915738643523)

If you know the courtyard area, you can pass it to skip the computation step.

Expand Down