pub fn write_dir(
net: &Network,
to: &str,
out_dir: impl AsRef<Path>,
) -> Result<Vec<String>>Expand description
Write net into the directory out_dir as the named directory-shaped
format: the directory sibling of write_as, sharing its name-dispatch
role for the bindings. PyPSA CSV (pypsa-csv/pypsa) is the one such
format today; a text format name is rejected by name, pointing at
write_as. Returns the write’s fidelity warnings.
§Errors
Error::UnknownFormat for a non-directory format name; the writer’s own
Error otherwise.