#[non_exhaustive]pub enum SourceFormat {
Matpower,
PowerModelsJson,
EgretJson,
Psse,
PowerWorld,
PandapowerJson,
PowerWorldBinary,
InMemory,
Normalized,
Gridfm,
PypsaCsv,
}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
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 (e.g. from synth or an edited case); no source text.
Normalized
A normalized derived view (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.
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<SourceFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SourceFormat
impl PartialEq for SourceFormat
Source§impl Serialize for SourceFormat
impl Serialize for SourceFormat
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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.