flatland.envs.flatland_envs_rail_env_utils module¶
-
flatland.envs.flatland_envs_rail_env_utils.
load_flatland_environment_from_file
(file_name:str, load_from_package:str=None, obs_builder_object:flatland.core.env_observation_builder.ObservationBuilder=None) → flatland.envs.rail_env.RailEnv[source]¶ Parameters: - file_name : str
The pickle file.
- load_from_package : str
The python module to import from. Example: ‘env_data.tests’ This requires that there are __init__.py files in the folder structure we load the file from.
- obs_builder_object: ObservationBuilder
The obs builder for the RailEnv that is created.
Returns: - RailEnv
The environment loaded from the pickle file.