Skip to content

Commit 9b2cdcc

Browse files
authored
Update regionalisation demo in README (#351)
1 parent ed33f20 commit 9b2cdcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ attrs = [f"PCGDP{year}" for year in range(1950, 2010, 10)]
2828
w = libpysal.weights.Queen.from_dataframe(mexico)
2929
mexico["count"], threshold_name, threshold, top_n = 1, "count", 4, 2
3030
numpy.random.seed(123456)
31-
model = spopt.MaxPHeuristic(mexico, w, attrs, threshold_name, threshold, top_n)
31+
model = spopt.region.MaxPHeuristic(mexico, w, attrs, threshold_name, threshold, top_n)
3232
model.solve()
3333
mexico["maxp_new"] = model.labels_
3434
mexico.plot(column="maxp_new", categorical=True, figsize=(12,8), ec="w");

0 commit comments

Comments
 (0)