Skip to content

Commit

Permalink
Merge pull request #229 from weikang9009/main
Browse files Browse the repository at this point in the history
(bug) numpy 2.0 is not supporting np.NaN
  • Loading branch information
jGaboardi authored Nov 2, 2024
2 parents 4ddd3e4 + dca74cc commit 4352234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions segregation/singlegroup/absolute_centralization.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def _absolute_centralization(
Xi = np.cumsum(x[asc_ind]) / X
Ai = np.cumsum(area[asc_ind]) / A

ACE = np.nansum(shift(Xi, 1, cval=np.NaN) * Ai) - np.nansum(
Xi * shift(Ai, 1, cval=np.NaN)
ACE = np.nansum(shift(Xi, 1, cval=np.nan) * Ai) - np.nansum(
Xi * shift(Ai, 1, cval=np.nan)
)

core_data = data[[group_pop_var, total_pop_var, data.geometry.name]]
Expand Down

0 comments on commit 4352234

Please sign in to comment.