flatland.envs.rail_env_utils module#
- flatland.envs.rail_env_utils.load_flatland_environment_from_file(file_name: str, load_from_package: str | None = None, obs_builder_object: ObservationBuilder | None = None, record_steps=False) RailEnv [source]#
Parameters#
- file_namestr
The pickle file.
- load_from_packagestr
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.