We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5df435b commit 8d6b623Copy full SHA for 8d6b623
mesa_frames/concrete/space.py
@@ -42,7 +42,7 @@ def step(self):
42
refer to the class docstring.
43
"""
44
45
-import math
+from math import inf
46
from collections.abc import Callable, Sequence
47
from typing import Literal
48
@@ -218,5 +218,5 @@ def _update_capacity_cells(self, cells: pl.DataFrame) -> np.ndarray:
218
@property
219
def remaining_capacity(self) -> int | Infinity:
220
if not self._capacity:
221
- return math.inf
+ return inf
222
return int(self._cells_capacity.sum())
0 commit comments