Expand description
File I/O: Matrix Market (.mtx) and JSON metadata, plus the gridfm-datakit
Parquet export (--features gridfm).
Re-exports§
pub use gridfm::GridfmOptions;pub use gridfm::GridfmOutputs;pub use gridfm::GridfmRead;pub use gridfm::GridfmSnapshot;pub use gridfm::GridfmTables;pub use gridfm::gridfm_base_case;pub use gridfm::gridfm_record_batches;pub use gridfm::gridfm_record_batches_batch;pub use gridfm::numbered_snapshots;pub use gridfm::read_gridfm_dataset;pub use gridfm::read_gridfm_network;pub use gridfm::read_gridfm_scenarios;pub use gridfm::write_gridfm_batch;pub use gridfm::write_gridfm_dataset;pub use meta::CaseMetadata;pub use meta::MatrixMetadata;pub use meta::write_meta_json;pub use mtx::read_mtx;pub use mtx::read_vector_mtx;pub use mtx::write_mtx;pub use mtx::write_vector_mtx;pub use sensitivity::write_sensitivity_mtx_with_options;
Modules§
- gridfm
- GridFM interchange: a parsed case as the gridfm-datakit Parquet schema.
- meta
- Per case metadata: matrices emitted, their stats, source file digest, build options. Used by the TUI Inspect screen and as a sidecar for downstream tooling.
- mtx
- Matrix Market I/O.
- sensitivity
- Streamed Matrix Market output for DC sensitivity matrices.
Functions§
- dataset_
scenario_ ids - Return the distinct scenario IDs in ascending order for dataset directory
dirin the namedfromformat. The C ABI exposes the same query throughpio_scenario_ids. - read_
dataset_ dir - Read one scenario from a dataset directory in the named
fromformat. This function dispatches dataset format names; the C ABI’spio_read_dirwraps it.gridfmis the currently supported dataset format;scenarioselects within it. PyPSA CSV directories are case inputs, not datasets, and parse throughparse_file.