Skip to content

Commit 01fa686

Browse files
committed
Corrected oversight in last Moran library model modification
1 parent a4f3aad commit 01fa686

File tree

1 file changed

+1
-1
lines changed
  • msi.gama.models/models/Modeling/Spatial Topology/Spatial Operators/models

1 file changed

+1
-1
lines changed

msi.gama.models/models/Modeling/Spatial Topology/Spatial Operators/models/Moran Index.gaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ global {
2626
}
2727
}
2828
vals <- cell collect (each.color = #white ? 0.0 : 1.0);
29-
weights <- 0.0 as_matrix {grid_size, grid_size};
29+
weights <- 0.0 as_matrix {length(vals), length(vals)};
3030
ask cell {
3131
switch weight_type {
3232
match "neighbors" {

0 commit comments

Comments
 (0)