-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
314 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,85 @@ | ||
.. _data_input: | ||
|
||
Data Input | ||
---------- | ||
========== | ||
|
||
Running Mercury requires to input some data in the right format. | ||
|
||
Note: a sample of data is provided with Mercury and can be downloaded | ||
`here <https://zenodo.org/records/11384379/files/Mercury_data_sample.zip?download=1>`_. | ||
|
||
The input data is organised in scenarios and case studies. Scenarios can be seen typically as a set of schedules, | ||
passenger itineraries, as well as the definition other agents like the AMAN. A case study is usually represented by a | ||
subset of flights and/or different operational configuration. When running Mercury, one has to specify as least the id | ||
of the scenario, and optionally the if of the case study. If no case study is chosen, Mercury will run the case "0", | ||
coinciding exactly with the data and parameters defined by APIthe scenario itself. | ||
|
||
- input | ||
The scenarios are read from the input folder, defined in the ``mercury_config.toml`` file, by default ``../input``. The | ||
input folder should follow the following structure: | ||
|
||
- scenario=-1 | ||
- ``input`` | ||
|
||
- scenario_config.toml | ||
- data -> with all base data | ||
- case_studies -> with all data replacing the base data. | ||
- ``scenario=-1`` | ||
|
||
- case_study=0 | ||
- ``scenario_config.toml`` | ||
- ``data`` -> with all base data | ||
- ``case_studies`` -> with all data replacing the base data. | ||
|
||
- case_study_config.toml | ||
- data | ||
- scenario=0 | ||
- ``case_study=0`` | ||
|
||
- ``case_study_config.toml`` | ||
- ``data`` | ||
- ``scenario=0`` | ||
|
||
- etc... | ||
|
||
The first important file in each scenario is the ``scenario_config.toml`` file. This file is organised in two sections. | ||
The first one, under the header ``data``, is a list of all the table that are needed for the simulation, and what is their | ||
specific names in this scenario folder, for instance: | ||
|
||
.. code:: toml | ||
[data.delay] | ||
input_delay_paras = 'delay_parameters' | ||
[data.network_manager] | ||
input_atfm_delay = 'iedf_atfm_static' | ||
input_atfm_prob = 'prob_atfm_static' | ||
The second part of this file is composed by parameters and their values, for instance: | ||
|
||
.. code:: toml | ||
[paras.modules] | ||
modules_to_load = ['CM'] | ||
path = 'modules' | ||
[paras.airlines] | ||
non_ATFM_delay_loc = 0.0 | ||
compensation_uptake = 0.11 | ||
delay_estimation_lag = 60 | ||
Like in the first part, the parameters are organised in different sections and subsections, here for instance "modules" | ||
and "airlines". This important when using the CLI or the programmatic interface, because the parameters have to be called | ||
based on their subsections, for instance "airlines__non_ATFM_delay_loc", i.e. the name of the section, two underscores | ||
``__``, then the name of the parameter. A full description of the parameters can be found here: | ||
:ref:`scenarios_parameters`. | ||
|
||
The tables listed in the first part have to be included in the scenario folder, in ``data``, following the same structure | ||
than the toml file. All tables must be in parquet format. | ||
|
||
A detailed description of the all the input tables can be found here: :ref:`input_tables`. | ||
|
||
Finally, note that the GUI version of Mercury provides an easy way of exploring the different types of data, modifying | ||
them, creating scenarios, etc. More information here: :ref:`gui`. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,38 @@ | ||
.. _data_output: | ||
|
||
Data Output | ||
=========== | ||
=========== | ||
|
||
Mercury is an agent-based model with a high number of agents, therefore producing potentially high volume of data | ||
on each agents. | ||
|
||
The main output of Mercury is a set of tables, stored in the output directory defined by the variable | ||
``write_profile.path`` in the mercury config file (by default ``../results``). | ||
These tables (saved as ``.csv.gz`` files) are stored in a folder whose name is structured as | ||
``[model version]_[scenario id]_[case study id]_[iteration number]``. One can also insert a timestamp in folder name | ||
by setting the ``outputs_handling.insert_time_stamp`` parameter to True in the mercury config file. | ||
|
||
The two most important tables saved by Mercury are the following: | ||
|
||
- output_flights: compiles important information the flights, including fuel consumption, delay, etc. | ||
- output_pax: gathers information related to passengers, in particular their final delay, whether they missed | ||
connections etc. | ||
|
||
Other types of data are also saved at the save time, including: | ||
|
||
- output_dci: information related to Dynamic Cost Indexing when used. | ||
- output_eaman: information related to the optimisation process followed by the EAMAN. | ||
- output_events: information related to various events in the simulation, mostly used for benchmarking. | ||
- output_general_simulation: information related to the simulation itself. | ||
- output_hotspot: information related to the resolution of hotspots in the airspace. | ||
- output_messages: information related to internal messages during the simulation, mostly used for benchmarking. | ||
- output_RNG: information related to the Random Number Generator (probably not working at the moment). | ||
- output_wfp: information related to the "Wait For Passenger" process, whereby airlines may wait for late connecting | ||
passengers | ||
|
||
Finally, a copy of all the parameters used for this simulation is saved as a pickled dictionary ``paras.pic``, and | ||
a script ``unzip_results.py`` is included to easily unzip all the files. | ||
|
||
The description of all fields appearing in the output tables can be found here: :ref:`output_tables`. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _io_specs: | ||
|
||
Input/Output specifications | ||
=========================== | ||
|
||
This sections describes in details all the fields present in input or output tables, as well as all the simulation and | ||
scenario parameters included in the simulator. | ||
|
||
.. toctree:: | ||
Simulation parameters.rst | ||
Scenario parameters.rst | ||
Input tables.rst | ||
Output tables.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. _intput_tables: | ||
|
||
Input table specifications | ||
========================== |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. _output_tables: | ||
|
||
Output table specifications | ||
=========================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _parametriser_aggregator: | ||
|
||
Parametriser and Aggregator | ||
=========================== | ||
|
||
|
||
Parametriser | ||
------------ | ||
|
||
|
||
Aggregator | ||
---------- | ||
|
Oops, something went wrong.