#[unsafe(no_mangle)]pub unsafe extern "C" fn pio_parse_file(
path: *const c_char,
from: *const c_char,
errbuf: *mut c_char,
errlen: usize,
) -> *mut PioNetworkExpand description
Parse path (format from extension, or from if non-NULL) into a network
handle. from accepts the pio_parse_str format names plus
pypsa-csv/pypsa, goc3-json/goc3, surge-json/surge, and pwb;
that includes pslf/epc, and .epc is inferred by extension. A PyPSA CSV folder is a directory, so it can only
enter through this function, with from = "pypsa-csv" (or NULL when the
directory holds a network.csv). Read fidelity warnings attach to the
handle (pio_warnings). Returns NULL on error and writes the message
into errbuf. Free the handle with pio_network_free.