mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-06 09:31:35 +02:00
DEbugging done but he does not learn
This commit is contained in:
@ -48,7 +48,7 @@ class Register:
|
||||
return self._register.items()
|
||||
|
||||
def __getitem__(self, item):
|
||||
if isinstance(item, int):
|
||||
if isinstance(item, (int, np.int64, np.int32)):
|
||||
try:
|
||||
return next(v for i, v in enumerate(self._register.values()) if i == item)
|
||||
except StopIteration:
|
||||
|
Reference in New Issue
Block a user