mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-18 18:52:52 +02:00
minor fixes
This commit is contained in:
@ -86,8 +86,7 @@ class TSPBaseAgent(ABC):
|
||||
try:
|
||||
action = next(action for action, pos_diff in MOVEMAP.items() if np.all(diff == pos_diff))
|
||||
except StopIteration:
|
||||
print(f'diff: {diff}')
|
||||
print('This Should not happen!')
|
||||
print(f"No valid action found for pos diff: {diff}. Using fallback action.")
|
||||
action = choice(self.state.actions).name
|
||||
else:
|
||||
action = choice(self.state.actions).name
|
||||
|
Reference in New Issue
Block a user