Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nasim/envs/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,9 @@ def get_action(self, action_idx):
Action
Corresponding Action object
"""
assert isinstance(action_idx, int), \
assert isinstance(action_idx, (int, np.integer)), \
("When using flat action space, action must be an integer"
f" or an Action object: {action_idx} is invalid")
f" or an Action object. {type(action_idx)} is invalid")
return self.actions[action_idx]


Expand Down