Central Configuration
Sparlectra.load_sparlectra_config(...) loads the packaged defaults, overlays a user YAML and programmatic overrides, validates keys and values, and builds the typed SparlectraConfig every module reads.
Configuration files and selectors
| Item | Path / mechanism | Role |
|---|---|---|
| Packaged defaults | src/config/configuration.yaml.example | Baseline for every key, commented. |
| User override | examples/configuration.yaml | Local override (default user path). |
| Explicit path | load_sparlectra_config("/path/to/file.yaml") | Replaces the default user path for that call. |
| Environment variable | SPARLECTRA_CONFIGURATION_YAML via configuration_path_from_inputs(...) | Path selection in scripts and examples. |
Merge precedence
A later level wins:
| Level | Source | Notes |
|---|---|---|
| 1 | src/config/configuration.yaml.example | packaged defaults |
| 2 | user YAML: examples/configuration.yaml or an explicit user_path | |
| 3 | case configuration file next to the case | <stem>.config.yaml for an SCF case, else <file name>.config.yaml (case118.m.config.yaml), so a MATPOWER case and its SCF export keep separate files |
| 4 | Web UI form and runtime values of a service or Web UI run | |
| 5 | programmatic overrides | cli_overrides, then overrides (the API's config_overrides) |
| 6 | post-processing | such as model.auto_profile: apply |
An unknown or removed key in a file is warned about once (a removed key with its migration hint) and ignored, so a file from an earlier release keeps loading.
Case-scope keys are the keys of GUI_EDITABLE_CONFIG_KEYS in matpower_import.*, cgmes_import.*, powsybl_import.*, power_flow.*, state_estimation.*, short_circuit.*, qsts.* and the contingency keys the Settings page edits, among them the start strategy (power_flow.flatstart, start_mode.start_projection, try_dc_start, try_blend_scan, dc_seed_unconditional) and the wrong-branch bounds (scf_is_case_config_key(key) answers per key; contingency.rescue_ladder and contingency.events.name_stem_pattern are machine scope). When a case ships its own configuration file, these keys skip level 2 and resolve from the case file straight to the packaged defaults, so the case computes the same numbers on every installation. Machine-scope keys (output.*, benchmark.*, runtime.*, webui.*, matpower_export.*) still read the user file; a case file that states one is refused by name. The in-file block sparlectra.config is deprecated and applied below the case configuration file with a warning. effective_config.yaml of each run records what took effect. See Configuration precedence.
File version and scope
Every configuration file starts with its format version and scope:
config_version: 1
scope: generalA file without config_version reads as version 0: it loads through the version-0 aliases (model.* lived in matpower_import and transformer, runtime.case/runtime.cases in matpower_import), and the loader names the missing version and every translated key. A config_version newer than the running Sparlectra is an error. scope is general for the installation-wide file and case for a file next to its case.
refresh_sparlectra_config_file(path; write = false) checks a file against the current template: user values are kept, missing keys come from the template, duplicate keys are reported, normalize_deprecated = true rewrites known aliases, and every key no loader reads any more (removed, deprecated, unknown, a form block) is deleted and named. Nothing is written without write = true; a write first saves a .bak-YYYYmmdd-HHMMSS backup, and duplicate keys block it. The Web UI button Refresh configuration and a sysimage build call it; nothing rewrites a user file at startup.
YAML structure (section map)
The merged YAML becomes a SparlectraConfig; each module reads its own typed section.
| YAML section | Typed section | Purpose |
|---|---|---|
power_flow | PowerFlowConfig | Solver, start mode, Q limits, power_flow.mode (manual or auto): Power-Flow Configuration, Integration Guide. |
matpower_import | MatpowerImportConfig | Import conventions, the metadata keys matpower_import.apply_bus_names, apply_branch_names, apply_branch_kind, import_for001_contingencies and matpower_import.matpower_dcline_mode: Option reference. |
cgmes_import | CGMESImportConfig | CGMES Import. |
powsybl_import | PowsyblImportConfig | PowSyBl Import. |
short_circuit | ShortCircuitConfig | IEC 60909 short circuit: short_circuit.c_factor, short_circuit.sweep_method (auto, solves, takahashi), short_circuit.takahashi_min_buses, short_circuit.converter_current_factor (converter fault current without maxIFault as a multiple of the rated current, default 0 = off; a manufacturer figure to be set per case, about 1.0 to 1.5 as orientation); Short-Circuit Analysis. |
model | ModelConfig | Model construction for every importer: bus shunt model, tap-changer model (below), auto profile, preallocation, system frequency (below). |
state_estimation | StateEstimationConfig | State-Estimation Configuration. |
output | OutputConfig | Console and logfile output, result tables (keys below and in Output configuration); output.startup_latency_hint: false silences the one-per-process JIT warm-up note of runs without a sysimage or executable. |
performance | PerformanceConfig | Profiling and diagnostic volume: Performance and Profiling. |
benchmark | BenchmarkConfig | Repeated benchmark runs: Benchmark configuration. |
contingency | ContingencyConfig | Contingency batch, correlated events and N-2 pairs; keys in Contingency keys. |
control | ControlConfig | Controller outer loop and declarative controllers, below. |
runtime | RuntimeConfig | Case selection (runtime.case, runtime.cases), thread control, runtime.parallel.* (Parallel execution). |
diagnostics | DiagnosticsConfig | log_effective_config only; the former diagnostics.console_*/logfile_diagnostics duplicate output.* and are ignored with a warning. |
webui | WebUIConfig | Web UI preferences such as webui.show_case_settings_notice; keys below. |
extensions | reserved | Placeholder, not mapped to typed fields. |
Option lifecycle and compatibility policy
Prefer the nested keys of the template.
| Class | Meaning |
|---|---|
| Public / supported | keys in src/config/configuration.yaml.example and the typed constructors |
| Reserved | placeholders such as extensions.reserved |
| Deprecated aliases | accepted for migration, not for new files (max_ite, some start-projection aliases) |
| Removed | warn with a migration hint, ignored (matpower_import.benchmark) |
| Internal | not a stable API |
Transformer tap-changer model
model.tap_changer_model decides for every transformer of a MATPOWER or DTF case whether a tap step changes the winding ratio alone or also the series impedance. SCF keeps the setting stored per transformer, CGMES and PowSyBl take the impedance per step from their data (branch model):
model:
# Allowed values: ideal, impedance_correction
tap_changer_model: ideal| Value | Effect |
|---|---|
ideal (default) | Tap steps change the complex winding ratio; R and X keep their neutral-position values. |
impedance_correction | Tap steps also re-refer R and X through the tapped winding; the correction math is in calcTapCorrectedRX / calcTapImpedanceCorrectionFactor, see the branch model. |
The MATPOWER and DTF importers read the key. writeMatpowerCasefile writes the corrected Branch.r_pu/Branch.x_pu with a roundtrip marker, so a reimport does not correct twice; see Tap-impedance correction and reimport.
System frequency
The system frequency is a property of the network: every Net carries it as net.nominal_frequency_hz. model.nominal_frequency_hz (default 50.0, 60 for a North American network, any positive value) sets it when the case states none:
model:
nominal_frequency_hz: 50.0Rank order, highest first:
- The case file: an SCF file states it as
meta.f_nom. When the key was set explicitly (configuration file, case configuration, API or Web UI) and differs, the file wins and one warning names both values. A YAML value equal to the default does not count as set, so a file with a differentf_nomthen gives no warning. model.nominal_frequency_hz.- 50 Hz.
The key acts only where a capacitance in farad becomes a susceptance (table below), and a frequency stated in the case file wins over it.
effective_config.yaml records the key; the metadata in result.json names the frequency the network used (network_nominal_frequency_hz) and its source (frequency_source: case_file, configuration, or not_used when no capacitance in farad entered the model). run.log carries the same as one line, for example System frequency: 50 Hz (case file) or System frequency: not used (no capacitance in farad); case file states 50 Hz, and the result print as Frequency : 50 Hz (case file). Power flow, diagnose, QSTS, state estimation and N-1 runs write both; short circuit does not, it uses no frequency (table below).
MATPOWER, DTF, PowSyBl IIDM and a plain power-grid-model file carry no frequency, so the key applies without a message. CGMES deliveries carry no network frequency in the sets tested; model.nominal_frequency_hz applies.
Where the frequency enters and where not:
| Place | Frequency used |
|---|---|
addACLinePerKm! | yes: $b = 2\pi f C$ from c_nf_per_km |
SCF and PGM line c1 (farad) | yes: read as $b = 2\pi f\,c_1$, written as $c_1 = b/(2\pi f)$ |
addACLine!, addPIModelACLine! | no: ohm, siemens or per unit are given at the network frequency |
| MATPOWER, DTF, CGMES, PowSyBl IIDM import | no: impedances and admittances in ohm, siemens or per unit |
| Power flow and state estimation | no: they work on the admittances |
| Short circuit (IEC 60909) | no: $I_k''$ uses R and X as given, $\kappa$ by method b ($1.02 + 0.98\,e^{-3R/X}$) has no frequency term |
A case in ohm, siemens or per unit therefore gives the same power flow at 50 and 60 Hz. The conversion of a MATPOWER case to SCF writes the key value as meta.f_nom, because the c1 of its lines needs one; the MATPOWER export writes no frequency. A strict power-grid-model export (exportSCF(...; strict_pgm = true)) has no meta and names the dropped f_nom in its warning; reading that file back takes the key, so the reader has to use the same frequency as the writer.
The Web UI offers 50 and 60 Hz on the Case page (section "Network model"). For an SCF file the field starts at the file's f_nom, so the warning appears only when the value is changed against the file.
Loader and validation behavior
- Keys are validated against the schema tree of the template: an unknown key in a file is warned about and dropped, an unknown override key throws
ArgumentError. The Web UI configuration editor rejects an unknown key while the text is edited. - Type and domain checks (allowed symbols, positivity) run while the typed objects are built; some legacy aliases are accepted there.
load_sparlectra_config(...)caches the typed result for unchanged files without overrides; a changed hash or mtime invalidates it.- In a double-quoted string
\\is one backslash and\"a quote; any other backslash stays as written, so"C:\data\case.m"and"[ _#(-]?\d{1,2}\)?$"read unchanged. The Settings save and case configuration files write strings in this form, so a value reads back exactly as it was saved.
Minimal example YAML
config_version: 1
scope: general
power_flow:
method: rectangular
tol: 1.0e-5
max_iter: 80
autodamp: true
autodamp_min: 0.05
start_mode:
angle_mode: dc
voltage_mode: profile_blend
profile_source: matpower_reference
start_projection: true
qlimits:
enabled: true
enforcement_mode: active_set
model:
auto_profile: off
matpower_import:
pv_voltage_source: gen_vg
state_estimation:
enabled: true
method: wls
output:
console_summary: true
logfile_results: full
performance:
enabled: true
level: iteration
runtime:
case: case14.m
cases: [case14.m, case118.m] # non-empty wins for run_sparlectra_cases
julia_threads: keep
blas_threads: keepWrong-branch detection semantics (rectangular PF)
power_flow.wrong_branch_detection is a heuristic plausibility check of every numerically converged AC result, with or without reactive limits; it proves nothing about the solution branch.
| Mode | Effect |
|---|---|
off | no check |
warn (default) | a suspicious solution is reported in the status metadata, the run stays converged |
fail | a suspicious solution counts as non-convergence |
rescue | reserved: reports rescue_requested_but_not_available, no retry runs |
The magnitude band (wrong_branch_min_vm_pu to wrong_branch_max_vm_pu) and the level-share rule are judged on every energised bus whose nominal voltage is at or above wrong_branch_min_vn_kV; when no level reaches the floor, on the highest level alone. A bus below wrong_branch_collapse_vm_pu is a finding on every level. The angle spread and the branch-angle rule stay on the highest level (both ends of the branch on that level). The angle across every in-service branch at the reference bus is judged on every level, phase shift compensated (reference_branch_angle_exceeded); it catches a solution rotated as a whole against a reference machine behind its own transformer. The reported magnitudes, lowest-bus list and wrong_branch_level_kV with its counts refer to the judged levels. A run with more than wrong_branch_max_plain_steps Newton steps without a switching event is reported (wrong_branch_plain_steps_exceeded) without changing the status; a well-posed case takes 7 to 14 steps.
Why the angle rules stay on the highest voltage level
Sub-transmission levels run at 0.94 to 0.97 pu in healthy snapshots with their own angle spread. The magnitude band (0.70 pu) is far below that and is judged on every transmission level, because a collapse can sit on a lower level under a clean top level (a 13659-bus case ended with 130 buses of its 150 kV level at 0.33 pu under three clean 750 kV buses).
Where the result is visible
| Surface | Fields |
|---|---|
ACPFlowReport.metadata | wrong_branch_status, wrong_branch_reason |
run_sparlectra_api result metadata | the two fields above plus wrong_branch_low_vm_count, wrong_branch_high_vm_count, wrong_branch_level_kV, wrong_branch_level_low_vm_count, wrong_branch_level_bus_count, wrong_branch_max_bus_angle_deg, wrong_branch_plain_steps, wrong_branch_plain_steps_exceeded, wrong_branch_angle_spread_deg, wrong_branch_branch_angle_violation_count, wrong_branch_reference_branch_angle_deg with wrong_branch_reference_branch (the largest angle across a branch at the reference bus and that branch in case bus numbers) |
ac_island_solver_summary.csv, ac_island_<id>_solver.log | wrong_branch_status/wrong_branch_reason per island, next to the wrong_branch_detection setting column |
printACPFlowResults | a Wrong-branch : SUSPECT (...) or FAIL (...) line unless the result is ok or not_checked |
| Web UI run result page | a "Wrong-branch check" badge unless not_checked |
status value | Meaning |
|---|---|
ok | checked, no finding |
warn | suspicious, accepted under warn |
fail | suspicious, non-convergence under fail |
wrong_branch_rescue_not_implemented | the reserved rescue mode was requested |
not_checked | off, or the check never ran (non-finite solution) |
reason values: none, voltage_collapse, low_voltage_level_share, low_voltage_magnitude, high_voltage_magnitude, bus_angle_exceeded, angle_spread_exceeded, branch_angle_exceeded, reference_branch_angle_exceeded, nonfinite_voltage, disabled, rescue_requested_but_not_available.
The reserved rescue mode is not the rescue ladder for failed AC solves (power_flow.rescue, Solver core options). For hard flat-start cases the mitigations are this check and the APSLF solver (External Solvers).
Tuning keys (all under power_flow.). The bounds depend on the network and are case scope, so a case configuration file can widen them: the stored solution of case_ACTIVSg70k has bus angles down to -175 deg against the slack and raises bus_angle_exceeded under the default 120 deg.
| Key | Default | Meaning |
|---|---|---|
power_flow.wrong_branch_min_vm_pu | 0.70 | Lower edge of the plausibility band. |
power_flow.wrong_branch_max_vm_pu | 1.30 | Upper edge of the plausibility band. |
power_flow.wrong_branch_min_low_vm_count | 1 | Sub-band buses it takes to raise the finding. |
power_flow.wrong_branch_min_vn_kV | 100.0 | Nominal-voltage floor of the judged levels (magnitude band and level share). |
power_flow.wrong_branch_low_vm_share | 0.05 | Share of a level's buses below the band that raises low_voltage_level_share. |
power_flow.wrong_branch_collapse_vm_pu | 0.5 | A bus below this magnitude on any level raises voltage_collapse; 0 switches the rule off. |
power_flow.wrong_branch_max_angle_spread_deg | 180.0 | Maximum total angle spread of the solution. |
power_flow.wrong_branch_max_branch_angle_deg | 90.0 | Bound on the angle across an active branch of the highest level, phase shift compensated. |
power_flow.wrong_branch_max_bus_angle_deg | 120.0 | Bound on any judged bus angle relative to the slack (bus_angle_exceeded). |
power_flow.wrong_branch_max_reference_branch_angle_deg | 90.0 | Bound on the angle across any in-service branch at the reference bus, every level, phase shift compensated (reference_branch_angle_exceeded, ranked before bus_angle_exceeded); 0 switches the rule off. |
power_flow.wrong_branch_max_plain_steps | 20 | Newton steps without a switching event above which wrong_branch_plain_steps_exceeded is reported. |
power_flow.wrong_branch_rescue | false | Reserved switch of the unimplemented rescue loop; reports instead of retrying. |
power_flow.wrong_branch_rescue_max_attempts | 2 | Attempt bound of that reserved mode. |
A second check after convergence, power_flow.plausibility.vmin_warn (default 0.7 pu), warns when an energized bus on any level ends below the threshold and names that bus; the status stays converged. See Plausibility check.
Control configuration (generic outer loop)
control:
enabled: true
max_outer_iterations: 20
trace: true
log_iterations: true
stop_on_pf_failure: true
verbose_passes: false
controllers: {}| Key | Type | Default | Meaning |
|---|---|---|---|
control.enabled | Bool | true | Run the outer control loop (run_control!) around the inner solver when controllers exist. |
control.max_outer_iterations | Int | 20 | Outer-loop budget shared by all controllers; independent of power_flow.max_iter. |
control.trace | Bool | true | Collect machine-readable rows in ControlRunResult.trace. |
control.log_iterations | Bool | true | One console line per control pass when output.console_diagnostics is full. |
control.stop_on_pf_failure | Bool | true | Abort when the inner power flow fails. |
control.verbose_passes | Bool | false | Repeat the full inner-solver diagnostic blocks on every pass; off prints them once and summarizes later passes in one line. |
control.controllers | Mapping | {} | Declarative controllers, applied to the net before the outer loop (below; mechanics in Control Framework). |
Declarative controllers (control.controllers)
One named entry per controller; type selects the device function, the other keys mirror its keyword arguments (bus, branch and transformer references by name). Block style only: the minimal YAML reader has no - item sequences.
control:
controllers:
tap_T1:
type: power_transformer
trafo: T1
mode: voltage
target_bus: B2
target_vm_pu: 1.02
tcsc_B1_B2:
type: series_reactance
from_bus: B1
to_bus: B2
p_target_mw: 80.0
x_min_pu: 0.05
x_max_pu: 0.30type | Device function | Notes |
|---|---|---|
power_transformer | addPowerTransformerControl! | |
machine_voltage | addMachineVoltageControl! | |
shunt_voltage | addShuntVoltageControl! | |
series_reactance | addSeriesReactanceControl! | |
hvdc_pair | addHvdcPairControl! | |
upfc | addUpfcControl! | model: quadrature registers the SSSC+STATCOM pair, model: full the DC-link-coupled independent-P/Q model, see FACTS Devices |
Every type takes priority (integer, default 0), the rank of the controller in the outer loop: 0 acts first, a controller with a larger number waits while one with a smaller number still moves (Controller priority).
A power_transformer entry takes tap_min and tap_max (ratios, default the physical range of the transformer): the controller moves the ratio only inside this control range and stands at its limit at either end. A ratio outside the range, such as the case ratio when the range leaves it out, goes onto the nearer end of the range in the first pass, whatever the voltage error, and the run logs a warning naming the transformer, its start ratio and step and the limit, once per controller and run (a QSTS run is one run). Both values must lie inside the physical range, otherwise applying the entry fails with an ArgumentError naming it.
Unknown types, unknown keys and missing required keys fail at configuration load; unresolvable references and invalid limits fail at apply time, naming the entry. An element that already carries a controller of the same type is skipped (for a power_transformer entry: a tap controller on the same transformer that drives the same ratio or phase tap, so a voltage entry on the ratio tap and an active-power entry on the phase tap of one transformer are two controllers); only tap_min/tap_max of a power_transformer entry still reach the tap controller already on that transformer, so a configuration can narrow the range of a controller from the case file. applyConfiguredControllers! applies the block to a programmatically built net.
Contingency keys
| Key | Default | Meaning |
|---|---|---|
contingency.rescue_ladder | [warm] | Start-value stages per outage, tried in order: warm, apslf, dc, flat. |
contingency.max_iter | 30 | Iteration limit of every outage and scenario solve; the base case uses power_flow.max_iter. |
contingency.screening.mode | off | off, flag or only (Screening). |
contingency.screening.margin_pct | 10.0 | Distance to a limit below which an estimated outage gets the full solve. |
contingency.warm_active_set | true | Outages start from the PV/PQ state of the base case. |
contingency.warm_cold_check | false | Solve tight warm outages cold as well; the less favourable result counts. |
contingency.warm_cold_check_margin_pu | 0.02 | Voltage margin of the cold check. |
contingency.events.enabled | false | Add correlated events to a branch N-1 of an SCF case (Correlated events). |
contingency.events.double_circuits | true | Branches with the same two endpoints. |
contingency.events.busbars | false | One busbar section: its branches and its closed couplers. |
contingency.events.substations | false | A whole station: every branch at all its sections. |
contingency.events.links | false | Each closed coupler alone. |
contingency.events.name_groups | false | Branches whose file names share a stem. |
contingency.events.name_stem_pattern | [ _#(-]?[0-9]{1,2}[)]?$ | The circuit suffix a name group strips (regular expression). |
contingency.events.max_members | 6 | Events with more elements are skipped. |
contingency.pairs.enabled | false | Add N-2 branch pairs to a branch N-1 of an SCF case (N-2 pairs). |
contingency.pairs.rule | all | Which pairs; all is every pair of closed branches. |
contingency.pairs.max_pairs | 50000 | A run with more pairs stops before solving. |
Snapshot series keys
| Key | Default | Meaning |
|---|---|---|
qsts.mode | off | Run mode of a QSTS run: off refuses the run, snapshots solves every step on its own from the solution of the base step, sequential solves the steps in order and carries taps and banks from step to step. Allowed values: off, snapshots, sequential. |
qsts.base_step | 1 | Step of a CGMES snapshot series that is the base case, counted from 1; buildCGMESSeriesUnion takes it unless its base_step keyword is given. |
qsts.snapshot_controls | false | Run the controllers of the control section in the base case and in every step of a snapshot run. With false, taps and shunt banks stay at the values of each snapshot. |
qsts.sequential_start | previous | Start voltages of a step in a sequential run: previous takes the solution of the last solved step, snapshot the solution of the same step in a snapshot run without controllers. |
qsts.resync_every | 0 | Sequential run: every n-th step (1, n + 1, 2n + 1, ...) puts taps and banks back on the values of the series. 0 resyncs step 1 only. |
qsts.dead_time_steps | 0 | Sequential run: steps a controller stays locked after a counted move. 0 is no dead time. |
qsts.hunting_window | 3 | Sequential run: three net moves of one controller with alternating sign within this many steps count as one hunting pattern. At least 3. |
qsts.vm_min_pu | 0.9 | Sequential run: lower end of the voltage band of the violation metrics. |
qsts.vm_max_pu | 1.1 | Sequential run: upper end of the voltage band; above qsts.vm_min_pu. |
qsts.loading_max_pct | 100.0 | Sequential run: branch loading in percent of the rating above which a step counts an overload. |
qsts.series.min_structural_overlap | 0.95 | Share of common mRIDs over lines, transformers and their ends, busbar sections, breakers, disconnectors and connectivity nodes; below it a new series starts. An object with a new mRID but the same name and connections counts as common. Topological nodes are reported, not counted. |
qsts.series.max_injection_churn | null | Churn of the injections (a share in [0, 1]) above which a pair is flagged in the series report; never splits a series. |
qsts.series.max_gap | null | Largest step between two snapshots in minutes; a larger step starts a new series. |
Bookkeeping and console keys
| Key | Default | Meaning |
|---|---|---|
runtime.casefile, runtime.case_name, runtime.case_source, runtime.configured_default_casefile | "" | Written by the API and the Web UI into effective_config.yaml: which case a run used and where it came from. Not user inputs. |
output.console_live | false | Mirror the captured run output live to the console during API runs; run.log stays identical. |
output.result_table_max_rows | 200 | Row cap of the classical result tables. |
output.result_table_large_case_threshold_buses | 1000 | Bus count from which a case counts as large for result rendering. |
output.result_table_large_case_mode | summary | What large cases print instead of full tables: summary, classic, full. |
output.csv_format | auto | Delimiter and decimal separator of every CSV file a run writes; only the measurement table keeps its fixed layout (comma, decimal point). auto follows the regional settings of the machine (decimal comma gives excel_de, decimal point excel_us, the C/POSIX locale technical); technical is comma delimiter, dot decimal; excel_de semicolon delimiter, comma decimal, dot thousands separator; excel_us comma delimiter, dot decimal, comma thousands separator. The thousands separator applies to decimal numbers; integer cells (indices, ids, counts) are never grouped. The API keywords detailed_result_csv_format/detailed_result_csv_semicolon are a deprecated per-request override. |
output.export_significant_digits | 0 | Significant digits of the floats in exported cases: SCF, CGMES, measurement tables. 0 writes the shortest round-trip form, so the file reads back bit for bit; 1 to 17 round, and a value below 1e-9 in magnitude is written as 0, so the same case gives the same bytes on every machine (a solver leaves different last digits on another CPU). In code: with_export_significant_digits. |
webui.operation_log_retention_days | 10 | Int >= 0: days the operation log reaches back. Every Web UI start drops older entries; 0 keeps only the current session. The environment variable SPARLECTRA_WEBUI_OPERATION_LOG_RETENTION_DAYS wins (headless runs without a configuration file). |
webui.docs_base_url | https://welthulk.github.io/Sparlectra.jl/ | Base URL of the published documentation that the help pages (the ? next to a control) and the header link open; point it at a local build or a pinned version. A link only, nothing is fetched. |
webui.window_width | 1500 | Width in pixels of the app window the Web UI opens (Edge, Chrome, Chromium, Brave). |
webui.window_height | 950 | Height in pixels of that window. |
webui.window_x | null | Screen position of the window; null lets the browser place it. Stop Web UI saves size and position of the window here (not when it is minimized), and the next start opens the window there. Ctrl+C saves nothing. |
webui.window_y | null | See webui.window_x. |
webui.remote_mode | ssh | How a start with --remote (start_sparlectra_webui(remote = true)) is reached from another machine. ssh: the server stays on 127.0.0.1 and the user connects through an SSH tunnel; every user and process on the host can open the port too, unless webui.remote_ssh_require_token is set. direct: the server binds webui.remote_bind_address and accepts requests only with the access token; the traffic is not encrypted. A start without --remote ignores the remote keys. See Remote use. |
webui.remote_bind_address | 0.0.0.0 | IP address the direct mode binds: 0.0.0.0 every IPv4 interface, "::" every IPv6 interface, or the address of one interface. An IPv6 address is written in quotes: the reader takes an unquoted ::1 or :: for a symbol, and the loader refuses it naming the key. |
webui.remote_port | 8080 | Port of the server in both remote modes. |
webui.remote_access_token | "" | Access token of the direct mode, and of the SSH mode with webui.remote_ssh_require_token. Empty: a new token is generated at every start and printed on the host console. A fixed token needs at least 16 characters of A-Z, a-z, 0-9, ., _, ~, - and is written in quotes ("0123456789abcdef"); a value the reader takes for a number is refused. |
webui.remote_ssh_require_token | false | true: the SSH mode asks for the access token as well. Without it every user and process on the host can open the loopback port. |
Migration notes
| Legacy / old key | Canonical key | Notes |
|---|---|---|
matpower_import.benchmark | benchmark.enabled | removed, warns with this hint |
methods (top-level legacy path) | benchmark.methods | |
max_ite | power_flow.max_iter | deprecated alias |
Detailed references
Power-Flow Configuration, State-Estimation Configuration, MATPOWER cases, Performance and Profiling Configuration. The canonical key set is src/config/configuration.yaml.example; print_effective_config prints a run's effective configuration.