API reference

Every exported name, grouped by source file. The guides link to these entries.

The package

PowerIOModule
PowerIO

Julia binding of PowerIO, the power system data compiler, over C ABI 7.

using PowerIO
case = parse("case9.m")             # PioModule{BalancedNetwork}
net = case.value
length(net.buses)                   # 9
net.branches[1].reactance_pu
case.diagnostics                    # the reader's findings
emit(case, "matpower", "copy.m")    # same format: writes the original file unchanged
result = emit(case, "psse")         # another format, in memory
result.text
serialize(case, "case9.pio.json")   # PowerIO IR

parse reads a grid exchange source into a typed module. emit writes one. serialize and deserialize move PowerIO IR between PowerIO consumers. calc_* functions compute matrices and vectors. to_* functions construct another value type in memory. apply_updates! changes a module in place.

The C library resolves automatically: the bundled artifact, or a sibling powerio build during development. Point at a custom build with set_library!, the POWERIO_CAPI environment variable, or a persisted Preferences.jl override.

source

Parsing

Base.parseMethod
parse(path::AbstractString; format=nothing) -> PioModule
parse(io::IO; format=nothing, name=nothing) -> PioModule
parse(bytes::AbstractVector{UInt8}; format=nothing, name="<memory>") -> PioModule

Parse one grid exchange source into a typed module. A string is a path to a file or directory. An IO or byte vector is read in memory; name supplies the source name for format detection and diagnostics (an open file stream uses its path). format is a canonical format token such as "matpower", "psse", or "dss"; when omitted, the source name and content select the format.

The value type follows the source: MATPOWER, PSS/E, XIIDM, CGMES, and the other balanced formats give PioModule{BalancedNetwork}; OpenDSS, PMD JSON, and BMOPF give PioModule{MulticonductorNetwork}; PyPSA and GridFM folders give time series and scenario sets; GO Challenge 3 and OPFData give calculation instances and solutions.

These methods extend Base.parse so the bare name works after using PowerIO. Parse failures throw PowerIOError.

source

Display and identity

Everything else

The remaining docstrings appear on their guide pages: Modules, Networks, Distribution, Collections and instances, Matrices, Updates, Interop, and Binary distribution.