div18 commited on
Commit ·
fa8da3f
1
Parent(s): 619e74d
fix structure
Browse files- training/openenv_loop.py +2 -2
training/openenv_loop.py
CHANGED
|
@@ -419,8 +419,8 @@ def rollout_episode(
|
|
| 419 |
# Per-step log
|
| 420 |
if not action.is_valid:
|
| 421 |
notes = f"INVALID: {action.parse_error}"
|
| 422 |
-
elif action.
|
| 423 |
-
notes = action.
|
| 424 |
else:
|
| 425 |
notes = ""
|
| 426 |
action_str = f"{action.action_type:11s} {action.target_node_id} p={action.parameter:.2f}"
|
|
|
|
| 419 |
# Per-step log
|
| 420 |
if not action.is_valid:
|
| 421 |
notes = f"INVALID: {action.parse_error}"
|
| 422 |
+
elif action.parse_error:
|
| 423 |
+
notes = action.parse_error
|
| 424 |
else:
|
| 425 |
notes = ""
|
| 426 |
action_str = f"{action.action_type:11s} {action.target_node_id} p={action.parameter:.2f}"
|