Skip to main content

read_dataset_dir

Function read_dataset_dir 

Source
pub fn read_dataset_dir(
    dir: impl AsRef<Path>,
    from: &str,
    scenario: i64,
) -> Result<GridfmRead>
Expand description

Read one scenario from a dataset directory in the named from format. This function dispatches dataset format names; the C ABI’s pio_read_dir wraps it. gridfm is the currently supported dataset format; scenario selects within it. PyPSA CSV directories are case inputs, not datasets, and parse through parse_file.

§Errors

powerio::Error::UnknownFormat for a non-dataset format name; otherwise as read_gridfm_dataset.