pub fn parse_with_dss_limits(
source: Source,
dss_limits: DssReadLimits,
) -> Result<PioModule<MulticonductorNetwork>, Error>Expand description
parse with the limits an OpenDSS read works under set by the caller.
A case with several hundred thousand lines and loads needs more than the
defaults allow; see crate::dss::DssReadLimits. The limits apply when
the source reads as OpenDSS and have no effect on any other format.
use powerio_dist::dss::DssReadLimits;
let source = powerio_core::Source::open("region/Master.dss")?;
let limits = DssReadLimits::default()
.max_include_bytes(1 << 30)
.max_properties(1 << 26);
let module = powerio_dist::parse_with_dss_limits(source, limits)?;ยงErrors
As parse.