message_ix_models.model.transport.report.latest_reporting_from_file

message_ix_models.model.transport.report.latest_reporting_from_file(info: ScenarioInfo, base_dir: Path) tuple[Any, int, DataFrame][source]

Locate and retrieve the latest reported output for the scenario info.

The file transport.csv is sought in a subdirectory of base_dir identified by ScenarioInfo.path.

Todo

Move upstream, to message_ix_models.

Returns:

  1. The path of the file read.

  2. int: The scenario version corresponding to the data read.

  3. pandas.DataFrame: the data.

If no data is found, all the elements are None.

Return type:

tuple