State-Estimation Configuration
The estimator reads every setting from the active configuration: runse!(net), runse_diagnostics, validate_measurements and validate_topology take no settings. with_state_estimation_config(max_iter = 12) do runse!(net) end installs other values for one call and restores the previous configuration afterwards. The service and the Web UI install the effective configuration of the case (general file, case file, form values) the same way.
flatstart, start_mode.rotate_behind_pst, robust_mode, robust, k_eliminate, k_suppress, max_eliminations, topology_precheck, report_residual_correlation, zero_injection, zero_injection_sigma_mva, sigma_by_voltage_level, tap_estimation.enabled, tap_estimation.fallback, tap_estimation.impedance_correction, tap_estimation.exclude and tap_estimation.include_machine_transformers are case-scope keys like power_flow.solver: a case configuration file may carry them (Web UI: Save settings for this case on the State Estimation page or the Settings page), and the State Estimation form shows the effective value: from the case configuration file when the case has one (a key it does not state takes the default below, not the general file), otherwise from the general file, else the default. The run, the topology hypothesis test and the measurement generator use this value. The other keys are installation-wide: this file or the API.
Mechanisms: Bad-data thresholds and robust modes, Sequential elimination budget, Residual correlations, Observability (rank tolerance, rank source, critical measurements) and Topology validation.
| YAML path | Type | Default | Allowed values | Meaning |
|---|---|---|---|---|
state_estimation.enabled | Bool | true | true, false | Enables the SE stage. |
state_estimation.method | Symbol/String | wls | wls | Estimation algorithm; other values fail validation. |
state_estimation.tol | Float64 | 1e-6 | positive real | Convergence tolerance on the state step. The default is the finite-difference noise floor (jac_eps); a tighter value is unreachable and the run raises it with a log line. |
state_estimation.max_iter | Int | 50 | positive integer | Iteration cap; the service and the Web UI form use the same value. A diverging run does not converge with a higher cap either. |
state_estimation.flatstart | Bool | true | true, false | Start from a flat state (every |V| 1 pu, every angle 0 with the slack at 0 inside the estimate) instead of the model's current voltages, which a warm start takes against the stored slack angle. Results and the write-back keep the stored slack angle. Switch off when a trusted start state exists. See Start value. |
state_estimation.start_ladder | Bool | true | true, false | Flat start only: a run that does not converge is solved once more from the voltages stored in the case (MATPOWER Vm/Va, CGMES SV, SCF start state), also the staged start of the tap estimation. No second try when the stored voltages equal the flat start. SEResult.start and the metadata se_start name the start of the result (stored_after_flat after the second try). See Start value. |
state_estimation.start_mode.rotate_behind_pst | Bool | false | true, false | Block state_estimation.start_mode. Flat start only: a bus that the slack reaches only across phase-shifting transformers starts at their shift sum, the angles of the power flow flat start under power_flow.start_mode.rotate_behind_pst; a bus that a path without shifter reaches keeps 0. false: every angle of the flat start is 0. Library callers pass start_mode = Sparlectra.SEStartModeConfig(rotate_behind_pst = true) to with_state_estimation_config. |
state_estimation.jac_eps | Float64 | 1e-6 | positive real | Perturbation of the finite-difference Jacobian; sets the attainable tol. |
state_estimation.update_net | Bool | true | true, false | Write the estimated state back to the network, so a following power flow starts from it. |
state_estimation.pmu_ref_offset | Symbol/String | auto | auto, off | auto estimates the angle offset between the PMU time base and the angle reference of the model (the stored slack angle) as one extra state when VaMeas rows exist (the offset is near 0 when the bases coincide); off takes PMU angles in the angle reference of the model. Keyword pmuRefOffset. |
state_estimation.imag_activation_iteration | Int | 2 | positive integer | First WLS iteration in which current-magnitude rows (ImagMeas) enter the update, a flat-start protection; no effect without them. Keyword imagActivationIteration. |
state_estimation.ia_current_floor_A | Float64 | 10.0 | positive real | Activity gate of a current-angle row (IaMeas) without a paired magnitude: active while the predicted current exceeds 3 times this floor (ampere); with a paired ImagMeas its 3 sigma apply. Gating notes in the diagnostics. |
state_estimation.report_residual_correlation | Bool | true | true, false | Residual-correlation columns in the bad-data report (max abs k per row, warning above 1/sqrt(2)); one dense m x m pass in the diagnostics, for simply redundant measurement groups. Keyword reportResidualCorrelation. |
state_estimation.update_shunts | Bool | true | true, false | Write the estimated susceptances of released shunts (setShuntEstimation!) back into the model (Shunt.y_pu_shunt/B_shunt) after a converged run. Off keeps the model data authoritative. Keyword updateShunts; estimates in SEResult.shuntEstimates. |
state_estimation.update_taps | Bool | false | true, false | Write the fixed steps of released tap changers (setTapEstimation!) back after a converged fixed run: tap_ratio/phase_shift_deg, the steps of a stored changer set or typed model, and r, x, g, b (with r_base_pu/x_base_pu) when an impedance source applied (tap_estimation.impedance_correction); frozen regulators keep their model value. With update_net the flows and losses are computed on the written-back taps. Off: an estimation never overwrites tap data silently. Keyword updateTaps; results in SEResult.tapEstimates/tapFixation. |
state_estimation.measurement_table | Bool | true | true, false | Let the SE service read a measurement table (CSV, one measurement set per timestamp, keys resolved by CGMES mRID for a CGMES case and by element name for every other format). Off: such a file is refused with this key named. |
state_estimation.zero_injection | Symbol/String | on | on, off, constraint | Zero-injection rows (ZI_PINJ_bus_<k>/ZI_QINJ_bus_<k>) at passive buses that carry no injection measurement, in every SE path. on (weighted) adds them as weighted rows at zero_injection_sigma_mva, constraint (Lagrange, KKT) as equality constraints with one Lagrange multiplier per row, reported per bus in se_zero_injection_multipliers.csv; the same applies to the LINKAGG balance of a fused coupler bus whose members are all passive (with load or generation the LINKAGG row is a weighted sum row and has no multiplier). The run log and se_zero_injection_rows give the number of rows added; every run reports the condition number of its gain or KKT matrix with J and dof (run.log, se_condition_number); see Zero injections and coupler balances. off adds none, and the generator writes zero balance rows instead. Rows a set already contains are read as they are. The Web UI generator checkbox "passive as zero-injection constraint" shows and sets this key for the case (on or off; a case on constraint shows the box checked and keeps constraint while it stays checked). The key is case scope: a case with its own <case>.config.yaml takes the value from that file (written by the generator checkbox), not from the general configuration file. |
state_estimation.zero_injection_sigma_mva | Float64 | 0.001 | finite, > 0 | Sigma of one zero-injection row under zero_injection: on, in MVA, the unit of the injection rows (MW for P, Mvar for Q; the default 0.001 MVA is 1 kW). Read where zero-injection rows are made: addZeroInjectionMeasurements!, applyMeasurementSet!, the measurement generator (as the floor of its passive-node sigma) and the sigma floor of a measurement table (only below the default 0.001). Smaller binds the balance harder and makes the gain matrix worse conditioned. Not used under constraint. Case scope, Web UI field "zero-injection sigma (MVA)" on the State Estimation page. |
state_estimation.sigma_by_voltage_level | mapping | {} (empty) | one row per level keyed by the nominal voltage in kV, block style | Measurement sigmas per voltage level in physical units, for rows without their own sigma and for the measurement table generators; see Measurement sigma by voltage level. |
state_estimation.topology_precheck | Bool | true | true, false | Run the advisory stage-1 topology checks (validate_topology, linear and cheap) at the start of every estimation; findings warn and land in SEResult.topologyFindings, nothing is blocked. |
state_estimation.topology_open_flow_k | Float64 | 4.0 | positive | Sigma multiple above which a measured flow over an open element is a status contradiction. |
state_estimation.topology_dead_flow_k | Float64 | 3.0 | positive | Sigma multiple below which a closed branch's flow measurements read dead; fires only when the model state expects a flow above the same multiple. |
state_estimation.topology_voltage_k | Float64 | 4.0 | positive | Sigma multiple of the voltage disagreement across a closed link. |
state_estimation.topology_kcl_k | Float64 | 4.0 | positive | Sigma multiple of the node-balance check at completely measured nodes. |
state_estimation.topology_cluster_min | Int | 3 | positive integer | Minimum surviving suspects at one station for the stage-2 classification :topology_error_suspected_at_station of runse_diagnostics; very small nets cluster trivially. |
state_estimation.robust_mode | Symbol | off | off, staged, replacement | Solve-weight family: off is plain WLS; staged the two-stage R modification with the knees robust_k1/robust_k2; replacement pins rows whose converged normalized residual reaches k_suppress to suppression_sigma (an EMS-style suppression list, bounded re-solve rounds on the converged state). Statistics keep the original sigmas in every mode. The smoothing modes serve online runs with sporadic gross errors; identification uses the sequential elimination. |
state_estimation.robust | Bool | false | true, false | Deprecated alias for robust_mode = staged, read only while robust_mode is off. Set robust_mode instead, never both. |
state_estimation.robust_start_iteration | Int | 3 | positive integer | First WLS iteration with robust weight modification; earlier iterations solve unmodified, because residuals say nothing before the state settles. |
state_estimation.robust_k1 | Float64 | 3.0 | positive, <= robust_k2 | Lower knee of staged, on the raw ratio t = |r|/sigma (not the normalized residual rn of k_eliminate and k_suppress): weights are unchanged up to t = k1, the tangential band starts there. |
state_estimation.robust_k2 | Float64 | 6.0 | >= robust_k1 | Upper knee of staged, same raw ratio; beyond it the gradient contribution is suppressed (sigma_mod = |r|/k1). The defaults reproduce the classic 3/6 behavior bitwise. |
state_estimation.k_eliminate | Float64 | 3.0 | positive | Elimination limit on the normalized residual rn = r/sqrt(Omega_ii) (keyword normalizedThreshold): from it a row is removed from the estimate, not just down-weighted. Rarely set below 3. The Web UI warns when k_suppress < k_eliminate. |
state_estimation.k_suppress | Float64 | 4.0 | positive | Down-weight limit of replacement, on the same rn as k_eliminate, so the two are directly comparable: a row whose converged rn reaches it is solved with suppression_sigma. The row stays in every statistic. |
state_estimation.suppression_sigma | Float64 | 2000.0 | positive | The sigma a suppressed row is solved with, in the measurement's unit; statistics keep the original sigma. It removes the row's pull without deleting it; values near the real sigma call for staged instead. |
state_estimation.max_eliminations | Int | 5 | >= 0 | Budget of the sequential elimination: at most this many rows per diagnostics run, one per round, so also the round limit of the loop; 0 disables the elimination and leaves the diagnostics reporting only. Each increment costs one further estimation run. With released taps the SE service eliminates one row per round on the end steps of the result run and counts the budget over all rounds, see Tap estimation switch and fallback. Past a few removals the cause is usually a model or topology error, which stage 2 reports (stop reasons :max_eliminations, :no_localizable_suspect). |
state_estimation.rank_tol_factor | Float64 | 10.0 | positive real | Rank tolerance factor * jacEps * sigma_max of the normalized AC Jacobian (numerical_rank, criticality), matching the error floor of the finite-difference Jacobian; the observability verdict comes from the decoupled models and does not depend on it. Lower it only for exact analytic Jacobians passed with an explicit tol. |
state_estimation.rank_method | Symbol/String | decomposition | decomposition, pivots | Source of the observability rank: decomposition is the SVD of the Jacobian (on large sets a sparse QR, its deficit sized by the null-space iteration on the gain matrix); pivots reads it from the LDLt factorization of the gain matrix that the criticality pass computes anyway, exact for full rank, and hands any deficit to the decomposition. The report names the method used in rank_method; a disagreement between the two is a finding, not a tolerance to tune. Use pivots on large networks once it has agreed with the decomposition on your cases. |
state_estimation.criticality_method | Symbol/String | omega | omega, rank | How critical measurements (structurally zero residual) are found: omega reads Omega_ii for every row from one factorization and one selected-inverse pass, no size budget, and reports wii as the graded nearly-critical information; rank runs one rank test per row (budgeted at 300000 rows times states, criticality_skipped above) as a cross-check. |
state_estimation.takahashi_min_states | Int | 200 | positive integer | State count from which the diagnostics compute Omega_ii with the sparse Takahashi selected inverse instead of the dense pinv; diagnostics only, omega_path in the result. K-matrix requests and guard failures use the dense path automatically. |
state_estimation.linear_solver | Symbol/String | umfpack | umfpack, klu | Sparse LU of the normal equations G dx = g when the gain matrix is not exactly symmetric; an exactly symmetric one takes the Cholesky factorization on either setting. Both keep the symbolic analysis per sparsity pattern. klu needs the KLU package extension (using KLU next to Sparlectra) and falls back to umfpack with one warning without it; the estimates agree to rounding, not bitwise. umfpack stays the default when KLU is loaded for power mode (the power-flow counterpart is power_flow.linear_solver). |
state_estimation.symmetric_gain | Bool | false | true, false | Build G = H'WH exactly symmetric (upper triangle mirrored), so the solve always takes the Cholesky route, several times faster per iteration on large networks; one extra copy of G per iteration. The estimates differ from the plain product at the 1e-10 pu level, so leave it off where results must match earlier runs. |
state_estimation.observability.weak_flow_sigma_mw | Float64 | 20.0 | positive (MW) | Weak class of the observability check: a set is :weakly_observable when the standard deviation of an active branch flow in the covariance of the estimate exceeds this value. The SE service marks a result that is weakly observable at its estimate unusable. See Observability. |
state_estimation.observability.weak_vm_sigma_pu | Float64 | 0.01 | positive (pu) | The same bound for the standard deviation of a voltage magnitude, twice the default sigma of a Vm measurement. |
state_estimation.observability.weak_check_after_estimation | Bool | true | true, false | Under on_unobservable = abort, runse! determines the weak class at the estimated state after a converged run with update_net (result field weakObservability). It only reports; false switches it off for mass runs. Under observable_islands and scheduled the class is always determined at the estimate. |
state_estimation.observability.on_unobservable | Symbol/String | abort | abort, observable_islands, scheduled | What runse! does with a set that is not observable. abort: the estimation runs as is. observable_islands: each observable island is estimated on its own with its own reference; a bus above the weak bounds at the estimate leaves its island as well. scheduled: replacement values close the deficit first (restore_observability), the rest like observable_islands. Under abort the SE service stops on a not-observable set and names the observable islands. The key is case scope: the shipped sp_case14_islands and sp_case16_islands set observable_islands in their case configuration. See When the set is not observable. |
state_estimation.observability.restore_sigma_rel | Float64 | 0.30 | positive | Sigma of a P or Q replacement value of scheduled as a share of its scheduled value; at least the default sigma of a P or Q measurement, so a replacement value is never more accurate than a meter. |
state_estimation.observability.restore_vm_sigma_nominal_pu | Float64 | 0.05 | positive (pu) | Sigma of a U replacement value at the nominal voltage, the last rule of the U order (stored state, set point of a voltage-controlled unit, median of the measured U of the voltage level, nominal voltage). |
state_estimation.observability.placement_max_steps | Int | 20 | positive integer | Default cap on the steps of suggest_measurement_placement (one meter per step); the call stops with stop_reason = max_steps when the target is not reached by then. |
state_estimation.bad_data.substitute_sigma_factor | Float64 | 3.0 | finite, >= 1 | Block state_estimation.bad_data. The sigma of the pseudo measurement that replaces a voltage measurement outside 0.5 to 1.5 pu (0 kV and non-finite values included) on an energized bus, as a multiple of the sigma of the row; the value is the imported state of the bus (SvVoltage of a CGMES import, else 1.0 pu), reason range_check_substituted. Library callers pass bad_data = Sparlectra.BadDataConfig(substitute_sigma_factor = ...) to with_state_estimation_config. See Range check of the voltage measurements. |
state_estimation.last_value.enabled | Bool | false | true, false | Block state_estimation.last_value. In a measurement table with several timestamps a value that is missing or valid = false at one timestamp is replaced by the last valid value of the same key and type from an earlier timestamp (origin last_value, source last_value;<timestamp of the original>), before the pseudo rows of the schedule. A table with one timestamp gets nothing. See Incomplete measurement sets. |
state_estimation.last_value.max_age_min | Float64 | 60.0 | finite, > 0 | Block state_estimation.last_value. Oldest value the fill-in uses, in minutes before the timestamp it fills; an older value leaves the gap. |
state_estimation.last_value.sigma_factor | Float64 | 3.0 | finite, >= 1 | Block state_estimation.last_value. Sigma of a filled value as a multiple of the sigma of the original, fixed, not growing with the age. |
state_estimation.multi_area.mode | Symbol | off | off, two_level | Block state_estimation.multi_area. With two_level the SE service runs the multi-area estimation (runse_multi_area!) after the normal one on the same final rows and writes se_areas.csv, se_area_borders.csv and se_area_compare.csv, shown in the Areas section of the result page; runse! is unaffected. See Multi-area estimation. |
state_estimation.multi_area.partition | String | bus_area | bus_area or a path | The areas stored with the buses, or the path of an area list (bus name and area number per line, separated by ;, , or a tab). |
state_estimation.multi_area.max_passes | Int | 20 | positive integer | Most passes of the two-level method before the run stops unconverged. |
state_estimation.multi_area.compare_integrated | Bool | true | true, false | The result carries the integrated estimate on the same rows and the difference per state (also in units of its standard deviation). |
state_estimation.tap_estimation.enabled | Bool | true | true, false | Block state_estimation.tap_estimation. Switch of the tap estimation. false: no regulator becomes a state, also one released with setTapEstimation!; every changer keeps its transferred step (SSH profile or measurement file), nothing is written back, and each row of tapEstimates and se_tap_estimates.csv has status = not_estimated, reason = disabled. Web UI: "estimate taps" on the State Estimation page. See Tap estimation switch and fallback. |
state_estimation.tap_estimation.fallback | Bool | true | true, false | When the run with tap estimation does not converge (estimation run, fixation run, or non-finite values), a second run without tap estimation on the same measurements and start values is the result (tapFixation.fallback_used, metadata se_tap_fallback_used, reason fallback_not_converged). The SE service also falls back when the fixed estimate fits worse than its staged pre-solve (worse_fit, reason fallback_worse_fit). false switches off both and returns the first run as it is. Web UI: "tap fallback". See Tap estimation switch and fallback. |
state_estimation.tap_estimation.impedance_correction | Symbol/String | auto | auto, off | Block state_estimation.tap_estimation. The analytic impedance correction of a released regulator, per transformer. A transformer with per-step data (tap table rows with r and x, the reactance curve of a phase tap changer with xMin/xMax, TapStepImpedance factors) always moves its impedance with the step by these data, and the analytic correction is off for it under both values. A typed model follows the power flow: its x_min/x_max curve or x table follows the step under both values, the correction factor on r next to the curve applies under auto only. A typed x curve or x table (SCF tap_changer_models, addPIModelTrafo!) counts as a step table like the CGMES tables. Without per-step data auto applies the impedance correction of typed models under model.tap_changer_model = impedance_correction and off keeps the impedance of the start position. The column reactance_source of se_tap_estimates.csv names the source per row (table, analytic, nominal). No on: without per-step data or a typed correction there is no curve to force. Web UI: "tap impedance per step" on the State Estimation page. See Transformer tap estimation. |
state_estimation.tap_estimation.exclude | list of strings | [] | transformer names or CGMES mRIDs | Block state_estimation.tap_estimation. Transformers that never become tap states: each keeps its transferred step, its rows say status = not_estimated, reason = excluded, and its step is not calculated. An entry that names no transformer gives a warning naming it. A dotted override may give one string with ; between the entries. Web UI: the "estimate" checkboxes of the Case page. See Tap estimation per transformer. |
state_estimation.tap_estimation.include_machine_transformers | Bool | false | true, false | Block state_estimation.tap_estimation. false: a machine (generator step-up) transformer is not estimated (a terminal with a generator and no other branch, the buses closed links tie together count as one terminal); after a converged run with update_net its step is calculated from the AVR setpoint and the machine telemetry (status = calculated, reason = machine_transformer); without a Q measurement on every bus of the machine node the row stays not_estimated with reason = q_not_measured_in_group and the transferred step, without a P measurement the scheduled P is used (note = p_from_schedule). true estimates it like the others. Web UI: checking a machine transformer on the Case page. See Tap estimation per transformer. |
Measurement sigma by voltage level
measurementStdDevs gives one sigma per measurement type for the whole network. Instrument transformers and metering differ between voltage levels, so state_estimation.sigma_by_voltage_level sets the sigmas per level and measurement type in physical units. One row per level, keyed by the nominal voltage of the level in kV as in the network (bus Vn, matched to 1e-6 kV). The columns of a row:
| column | unit | meaning |
|---|---|---|
p_mw | MW | sigma of P measurements (flows and injections) |
q_mvar | MVAr | sigma of Q measurements (flows, injections, shunt bays) |
i_a | A | sigma of current magnitudes |
u_kv | kV | sigma of voltage magnitudes |
rel_pct | % | optional, default 0: the sigma is max(absolute, rel_pct/100 * |value|) |
A missing column keeps the global default for that type, and voltage angles (VaMeas, IaMeas) always do. The key must be a positive number and name each level once (380 and 0380 are the same level), every given sigma positive, rel_pct not negative, and a row sets at least one absolute sigma (rel_pct alone changes nothing). A bad row is an ArgumentError that names the key, the row (its key in the file, its position in a vector) and a reason: bad_vn_kv, duplicate_vn_kv, bad_value, no_sigma, unknown_column (also for a vn_kv column, the nominal voltage is the key), not_a_row, flow_style. For a table in a configuration file or a case configuration file the message ends with the file name and the line of the offending column or row, for example (sp_case14.config.yaml line 9).
Order per measurement:
- The sigma of the row itself (the
sigmacolumn of a measurement table, every row of an SCF case file, a measurement set in code). - The row of the level of the measuring bus: the bus of the node, of the injection or shunt bay, or, at a branch end, the bus at that end. A measurement at the 110 kV side of a 380/110 kV transformer takes the 110 kV row, one at the 380 kV side the 380 kV row.
- The default (
measurementStdDevs).
In practice the table acts on measurement tables with empty sigma cells and on the generators: generateMeasurementTableFromPF, generateMeasurementTableFromSV, generatePseudoMeasurementTable and the measurement generator of the Web UI (a measurement table) write the level sigma into each row and draw the noise with it, where the level of the row has a value for the type; elsewhere their own sigma settings apply. The Web UI generator reads the table of the case configuration and names the number of such rows in the comments of the set. A pseudo row then carries the sigma of a meter at that level; pass sigma_by_voltage_level = Sparlectra.SESigmaLevel[] to keep the larger pseudo sigma. Each of the three takes the table as a keyword, default the active configuration, like importMeasurementTable.
The estimator keeps P and Q in MW and MVAr, I in A and U in pu. The sigmas enter at the import of a row, in the unit of the estimator:
\[\sigma_{P,\mathrm{pu}} = \frac{\sigma_{P,\mathrm{MW}}}{S_\mathrm{base}}, \quad \sigma_{Q,\mathrm{pu}} = \frac{\sigma_{Q,\mathrm{MVAr}}}{S_\mathrm{base}}, \quad \sigma_{U,\mathrm{pu}} = \frac{\sigma_{U,\mathrm{kV}}}{V_n}, \quad \sigma_{I,\mathrm{pu}} = \frac{\sigma_{I,\mathrm{A}}}{I_\mathrm{base}}, \quad I_\mathrm{base} = \frac{1000\, S_\mathrm{base}}{\sqrt{3}\, V_n}\ \mathrm{A}\]
with $S_\mathrm{base}$ = baseMVA and $V_n$ the nominal voltage of the measuring bus in kV. P, Q and I rows keep their sigma in MW, MVAr and A, which gives the same normalized residual $(z - h)/\sigma$ as the pu form; U rows get $\sigma_{U,\mathrm{pu}}$. A sigma below the floor (the smaller of 1e-3 and state_estimation.zero_injection_sigma_mva) in the unit of the estimator is raised to it and counted as sigma_lifted, as for a sigma in the file. Example: p_mw = 2 and rel_pct = 1 give 3 MW at a reading of 300 MW and 2 MW at 100 MW.
The table is written in block style, one row per level under its nominal voltage, one column per line:
state_estimation:
sigma_by_voltage_level:
380:
p_mw: 2.0
q_mvar: 2.0
i_a: 20
u_kv: 0.5
rel_pct: 0.5
220:
p_mw: 1.5
q_mvar: 1.5
i_a: 25
u_kv: 0.4
rel_pct: 0.8
110:
p_mw: 1.0
q_mvar: 1.0
i_a: 30
u_kv: 0.3
rel_pct: 1.0The numbers are placeholders; take them from your metering. The key of a row is the nominal voltage in kV, with a decimal point where needed (10.5:, 0.4:); a key in quotes ("10.5":) reads the same. In code the key may be any positive number or its text. A key written twice is refused with duplicate_vn_kv and both lines, since the reader would keep only the second row. A row written as a flow mapping (380: {p_mw: 2.0}) is refused with the error flow_style and this block form, never read as text; a line that starts with - or { stops the YAML reader with the same hint.
The key is case scope: it usually lives in the case configuration file next to the case (<case>.config.yaml), which wins over the general file. The State Estimation section of the Web UI shows the table with one row per nominal voltage of the case (a configured level the case does not have is shown and marked); an empty cell keeps the default. The cells show the table of the case configuration and are empty without one, also when the general file sets the key. An empty table that was empty on the page posts nothing, so such a run resolves the key as an API run does; clearing the cells of a stored table clears it. Save settings for this case writes the table into the case configuration, keyed by the nominal voltage, and a run takes the table of the form. The table is also shown before the case has a measurement set, with its own save button, since the generator reads it. A stored table that cannot be read is shown with its error and disabled cells; the form then posts no table, so a run stops with the same error and a save keeps the stored value.
Each SE run reports, per nominal voltage of the case, the number of measurements and how many of them carry their own sigma, the level sigma or the default, and the configured sigmas in pu, in run.log, se_diagnostics.md, on the result page and in result.json (metadata.se_sigma_by_voltage_level). A configured level that no bus of the case has is a note in the same places (metadata.se_sigma_levels_not_in_case), not an error. Zero-injection rows are constraints and are not counted.