Skip to content

Commit

Permalink
raster_layer: Don't pass unique_id to Agent in Cell (#249)
Browse files Browse the repository at this point in the history
Remove another case unique_id being incorrectly passed t0 Agent, this time in the Cell of raster_layer.
  • Loading branch information
EwoutH authored Sep 25, 2024
1 parent b11f4b2 commit 1fcd240
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mesa_geo/raster_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import copy
import itertools
import math
import uuid
from collections.abc import Callable, Iterable, Iterator, Sequence
from typing import Any, cast, overload

Expand Down Expand Up @@ -175,7 +174,7 @@ def __init__(self, model, pos=None, indices=None):
Origin is at upper left corner of the grid
"""

super().__init__(uuid.uuid4().int, model)
super().__init__(model)
self.pos = pos
self.indices = indices

Expand Down

0 comments on commit 1fcd240

Please sign in to comment.