#[non_exhaustive]pub enum SourceFormat {
Show 14 variants
Matpower,
PowerModelsJson,
EgretJson,
Psse,
PowerWorld,
PandapowerJson,
Pslf,
PowerWorldBinary,
InMemory,
Normalized,
Gridfm,
PypsaCsv,
Goc3Json,
SurgeJson,
}Expand description
Which format a Network was read from. Drives the same format byte exact
echo on write.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Matpower
PowerModelsJson
EgretJson
Psse
PowerWorld
PandapowerJson
Pslf
Read from a GE PSLF .epc case. Same source text is retained, so a
same-format write echoes it byte-for-byte; a cross-format or
source-dropped write goes through the .epc serializer
(write_pslf).
PowerWorldBinary
Read from a PowerWorld .pwb binary case. Read only: there is no
.pwb writer and no retained source text, so writing goes through
another format’s writer.
InMemory
Built in memory, for example from synth or an edited case; no source text.
Normalized
A normalized derived form (Network::to_normalized): per unit, radians,
filtered, source bus ids preserved. Distinct from
InMemory so consumers can tell a per unit
product from a raw in memory network; it has no source text and a different
unit basis than a parsed network.
Gridfm
Read back from a gridfm-datakit Parquet dataset (the ML→classical bridge,
powerio-matrix’s read_gridfm_dataset). A lossy, power flow complete
reconstruction with no retained source text: original bus ids are
synthesized 1..n, per element load/shunt granularity is folded to one
synthetic element per bus, and HVDC/storage/piecewise costs are absent.
PypsaCsv
Read from a PyPSA CSV folder. This is a folder format rather than a single retained text document, so same-format writes are canonicalized.
Goc3Json
Read from an ARPA-E GO Challenge 3 JSON input document. The source is a unit commitment data set; the neutral transmission model keeps a static first interval network and retains the source text for the full data.
SurgeJson
Read from a Surge native JSON document.
Implementations§
Source§impl SourceFormat
impl SourceFormat
Trait Implementations§
Source§impl Clone for SourceFormat
impl Clone for SourceFormat
Source§fn clone(&self) -> SourceFormat
fn clone(&self) -> SourceFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceFormat
impl Debug for SourceFormat
Source§impl<'de> Deserialize<'de> for SourceFormat
impl<'de> Deserialize<'de> for SourceFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SourceFormat
impl PartialEq for SourceFormat
Source§impl Serialize for SourceFormat
impl Serialize for SourceFormat
impl Copy for SourceFormat
impl Eq for SourceFormat
impl StructuralPartialEq for SourceFormat
Auto Trait Implementations§
impl Freeze for SourceFormat
impl RefUnwindSafe for SourceFormat
impl Send for SourceFormat
impl Sync for SourceFormat
impl Unpin for SourceFormat
impl UnsafeUnpin for SourceFormat
impl UnwindSafe for SourceFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.