Skip to content

Commit

Permalink
Merge pull request #242 from sjsrey/bf241
Browse files Browse the repository at this point in the history
BUG: Don't include w.id_order in calculation of local C
  • Loading branch information
sjsrey authored Feb 19, 2023
2 parents b0f7aa5 + ac82312 commit 7f83108
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esda/geary_local_mv.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def _statistic(variables, zvariables, w, drop_islands):
# Rearrange data based on w id order
adj_list_gs["w_order"] = w.id_order
adj_list_gs.sort_values(by="w_order", inplace=True)
adj_list_gs.drop(columns=['w_order'], inplace=True)
localG = np.array(adj_list_gs.sum(axis=1, numeric_only=True) / k)

return localG
Expand Down

0 comments on commit 7f83108

Please sign in to comment.