Spaces:
Sleeping
Sleeping
Jerry commited on
Commit ·
637019d
1
Parent(s): 0789b28
Fix: Missing route_load and shipments after reset
Browse files- server/environment.py +2 -0
server/environment.py
CHANGED
|
@@ -210,6 +210,8 @@ class LogisticsShipmentEnvironment(Environment[LogisticsAction, LogisticsObserva
|
|
| 210 |
shipments=initial_shipments,
|
| 211 |
disruptions=list(self._task_def["disruptions"])
|
| 212 |
)
|
|
|
|
|
|
|
| 213 |
|
| 214 |
return self._build_observation("Environment reset complete.")
|
| 215 |
|
|
|
|
| 210 |
shipments=initial_shipments,
|
| 211 |
disruptions=list(self._task_def["disruptions"])
|
| 212 |
)
|
| 213 |
+
self._simulate_background_traffic()
|
| 214 |
+
print(f"DEBUG: State created with {len(self._state.shipments)} shipments and {len(self._state.route_load)} route loads.")
|
| 215 |
|
| 216 |
return self._build_observation("Environment reset complete.")
|
| 217 |
|