> ScenarioObservation Arg Mismatch

Looks like the arguments for the call to ScenarioObservation constructor are backwards.

class ScenarioObservation(NamedTuple):
processing_time: int
working_capacity: int

def _build_scen_info_obs(self):
# These parameters are currently static and do not change throughout a scenario
# If max working_capacity or processing time ever become dynamic. This observation will have to be changed.
return ScenarioObservation(self.world_generator.airport_generator.working_capacity,
self.world_generator.airport_generator.processing_time)

Posted by: jkolen @ Feb. 8, 2023, 4:51 a.m.
Post in this thread