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;
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.
Functions§
- dataset_
scenario_ ids - The distinct scenario ids of the dataset directory
dirin the namedfromformat, ascending, the introspection sibling ofread_dataset_dir(and the C ABI’spio_scenario_ids). - read_
dataset_ dir - Read one scenario of a dataset directory in the named
fromformat: the directory sibling ofpowerio::parse_file, and the one place dataset format names are dispatched (the C ABI’spio_read_diris a thin wrapper).gridfmis the one dataset format today;scenarioselects within it. PyPSA CSV directories are case inputs, not datasets, and parse throughparse_file.