QSTS Reference
Public API
Sparlectra.SCFSeries — Type
SCFSeriesAn SCF time series in memory: a base case and one list of patch operations per step.
name,created_by,provenance: from the manifest.base: the base case (SCFCase).index: theScenarioIndexof the base case with origin:scf_series. It takes the QSTS vocabulary ofPatchOp, maps the node ids to buses and holds the values of the parked units.parked: ids of the appliances (sym_load,sym_gen,source) with status 0 in the base case.build_net(series)parks them withset in_service 0; a step brings one back withset in_service 1.steps: oneSCFSeriesStepper step.ops: the patch operations of each step, the full delta against the base case (scalerefers to the base value). An empty list is the base state.step_minutes: the step length in minutes,nothingfor irregular steps.
The keyword constructor SCFSeries(; name, base, steps, ops, step_minutes = nothing, provenance = Dict(), created_by = "Sparlectra <version>") runs the checks of read_scf_series and names step and op of a failure.
Sparlectra.SCFSeriesStep — Type
SCFSeriesStep(step, timestamp, label)One step of an SCF time series: the step number (steps run from 1 without gaps, the base case is no step), the time timestamp in ISO 8601 UTC (YYYY-MM-DDThh:mm[:ss]Z, empty without time reference) and the axis label.
Sparlectra.build_net — Method
build_net(series::SCFSeries; config = active_sparlectra_config()) -> NetThe base net of an SCF time series: the net of the base case (build_net(series.base; config)), with every appliance the base case marks with status 0 parked through set in_service 0. The parking is the base state of the series and stays. A step applies with apply!(net, series.ops[k], series.index) and goes back with restore!.
Sparlectra.is_scf_series — Method
is_scf_series(path) -> Booltrue when path is a zip file whose top level holds the entry series.json, the manifest of an SCF time series. The content decides, not the file name. Only the end of the file is read unless that end names the manifest, so the probe stays cheap on a large CGMES delivery. A file that ends like a zip naming series.json but cannot be read as a zip raises the ArgumentError of the zip reader.
Sparlectra.read_scf_series — Method
read_scf_series(path) -> SCFSeriesRead an SCF time series zip and check everything before the first step:
- the zip holds exactly
series.json,base.scf.jsonanddelta.csv; - the manifest: format
sparlectra-scf-series,format_versionexactly 1.0, steps numbered 1 to n, timestamps on every step or none and strictly increasing; - the base case: the checks of
read_scf_json, plus the build-order fields every component needs; delta.csv: headerstep,op,target,id,field,value, six fields, finite numbers, a known step, rows sorted by step, every op through the checks ofvalidate_scenarioson the series index, one write per id and field in a step (scalewithout field writes p and q), no other op on a unit the step parks withset in_service 0, and a set, scale or status 1 on a unit the base case parks only together withset in_service 1.
Every error is an ArgumentError that names the entry and, for delta.csv, the line. Builds no net, except one build of the base case when it parks units (their values go to index.parked_values).
Sparlectra.write_scf_series — Method
write_scf_series(path, series) -> StringWrite series as one zip with the entries series.json, base.scf.json and delta.csv, compressed, and return the path. The entry texts are deterministic: writing what read_scf_series returns gives the same entries again. The zip bytes depend on the zlib build, so compare series by their entries, not by the zip file.
Sparlectra.QSTS_BRANCH_QUANTITIES — Constant
QSTS_BRANCH_QUANTITIESQuantities per branch of a snapshot run, in the order of the second axis of QstsResult.branch_values: the terminal flows p_from_mw, q_from_mvar, p_to_mw, q_to_mvar (from calcNetLosses!), loading_pct (only with a rating), p_loss_mw, q_loss_mvar, tap_ratio and shift_deg (only for a transformer with a tap controller), and the SV flow differences sv_dp_from_mw, sv_dq_from_mvar, sv_dp_to_mw, sv_dq_to_mvar.
Sparlectra.QSTS_BUS_QUANTITIES — Constant
QSTS_BUS_QUANTITIESQuantities per bus of a snapshot run, in the order of the second axis of QstsResult.bus_values: vm_pu, va_deg (the solved state) and sv_dvm_pu, sv_dva_deg (model minus SV of the snapshot, the angle aligned per electrical island).
Sparlectra.QSTS_CONTROLLER_QUANTITIES — Constant
QSTS_CONTROLLER_QUANTITIESQuantities per tap and bank controller of a sequential run, in the order of the second axis of QstsResult.controller_values: position (model step of a modelled transformer, else the tap position counted from the ratio 1.0 as in buildTapControllerReportRows; a switched bank bs_mvar / step_mvar; no value for a continuous SVC), bs_mvar (banks), ref_position (the position the series gives the step), dpos_ref (simulated minus reference position in steps), moves (net move in the step with its sign, 0 in a resync step), at_limit and locked (0 or 1; locked by the dead time). A snapshot run has no controller elements.
Sparlectra.QSTS_STEP_QUANTITIES — Constant
QSTS_STEP_QUANTITIESQuantities per step of a QSTS run, in the order of the first axis of QstsResult.step_values: converged (0 or 1), iterations, outer_iterations, n_frozen, total_p_loss_mw, total_q_loss_mvar, n_low_vm (energized buses below power_flow.plausibility.vmin_warn in a converged step, no value when the threshold is 0), and the SV comparison sv_n_nodes, sv_max_dvm_pu, sv_rms_dvm_pu, sv_max_dva_deg, sv_rms_dva_deg, sv_va_offset_deg, sv_tn_spread_pu, sv_n_terminals, sv_max_dp_mw, sv_rms_dp_mw, sv_max_dq_mvar, sv_rms_dq_mvar.
A sequential run (qsts.mode = sequential) adds, for a converged step: resync (1 in a resync step), n_moves (the counted tap and bank steps of the step), n_islands (electrical islands, one without a source included), n_isolated (buses without a value because they are isolated, in an SCF or event series also those of an island without a source) and shed_load_mw (the load on them), max_dvm_step_pu and max_dp_step_mw (largest change of a bus voltage and of a branch flow p_from_mw against the step before, only when that step converged), n_vm_low, n_vm_high (buses outside qsts.vm_min_pu, qsts.vm_max_pu) and n_overload (branches above qsts.loading_max_pct). A snapshot run leaves them without a value.
Sparlectra.QstsElements — Type
QstsElementsThe elements of a QSTS run, by position in the template. Bus fields: bus_ids (the address, see runQsts), bus_names, bus_vn_kv, bus_reported (false for the star point of a three-winding transformer, which has values in bus_values but no rows in the long table). Branch fields: branch_ids, branch_names, branch_kind (:line, :transformer, :equivalent_branch for a CGMES EquivalentBranch), branch_from, branch_to (bus positions) and branch_rating_mva (NaN without a rating).
Controller fields, filled by a sequential run only, one entry per tap controller (followers belong to their master) and per shunt bank controller in the order of collect_outer_controllers: controller_ids (<actuator address>#OLTC, #PST, #SCHRAEG, #MSC or #SVC), controller_names (control_name), controller_kind (:OLTC, :PST, :SCHRAEG, :MSC, :SVC), controller_actuator (address of the transformer, of the bank's shunt when the series addresses it, else of the bank's bus) and controller_target (address of the regulated bus, empty without one).
Sparlectra.QstsResult — Type
QstsResultThe result of runQsts:
name,origin(:cgmes_series,:scf_series),mode(:snapshots,:sequential),base_step(0 for an SCF series, whose base case is no step),step_minutes(nothingfor irregular steps);base: the base case solve as aQstsStepInfowith step 0;steps: oneQstsStepInfoper step;elements: theQstsElements;bus_values[bus, q, step],branch_values[branch, q, step],step_values[q, step],controller_values[controller, q, step]withqthe position inQSTS_BUS_QUANTITIES,QSTS_BRANCH_QUANTITIES,QSTS_STEP_QUANTITIES,QSTS_CONTROLLER_QUANTITIES;NaNis no value;switching: the net moves of a sequential run, seeqstsSwitching;metrics: its metrics, seeqstsMetrics; both empty in a snapshot run;max_iter,tol,snapshot_controls,tap_control,map_energy_source,qsts(theqstssection of the run),event_list(source file and row count of an event series, seeqstsEventSeries, empty otherwise): the settings the manifest records;notes: the changes of the step configuration against the passed one, a base case without convergence and similar, and one note per converged solve (base case or step) with an energized bus belowpower_flow.plausibility.vmin_warn, naming the lowest bus and its voltage; the same text is logged as a warning.
qstsLongTable and qstsValues read it, writeQstsResults writes it.
Sparlectra.QstsSVReference — Type
QstsSVReferenceThe SV state of one snapshot, the reference of the SV comparison of a snapshot run. Built by buildCGMESSeriesUnion from the direct import of each snapshot, with the exclusions of compareWithSV:
tn_buses,vm_pu,va_deg: one entry per topological node of the snapshot with anSvVoltage(v / vnandangle), with the union buses that node covers;branch,side,p_mw,q_mvar: one entry perSvPowerFlowat a line or transformer terminal, with the branch position in the union template and the side (:from,:to) the snapshot import gives the terminal.
Sparlectra.QstsStepInfo — Type
QstsStepInfoOne solve of a snapshot run (step 0 is the base case):
step,label,timestamp(ISO 8601 UTC, empty without time),is_base(the step whose snapshot is the base case);status::solved,:not_converged(the solve, or one AC island of a net with several, ended without convergence) or:solver_error(the solver threw;messageholds the first line);control_status: the status of the controller run (:converged,:max_outer_iterations,:blocked, ...) withqsts.snapshot_controls = true,:nonewithout controllers; a controller status other than convergence does not changestatus;iterations: Newton iterations (with controllers the larger of the sum over all passes and the last pass; for a non-converged AC island the iterations of that island),outer_iterations;residual: differences between the snapshot and template plus delta that the delta cannot express (CGMES), else 0;n_frozen: buses in electrical islands without a slack and without a PV bus; the solver holds their start voltage, so they get no values;reference: slack buses after the solve (bus positions);message: first line of the solver error; for AC islands that did not converge the message of the solve (island, buses, iterations) and status, iterations, reason and final mismatch of each such island; empty otherwise.
Sparlectra.qstsLongTable — Method
qstsLongTable(r::QstsResult) -> (step, element_id, quantity, value)The long format of a snapshot run as a named tuple of four equally long column vectors (Vector{Int}, Vector{String}, Vector{String}, Vector{Float64}). step is the position in the series (1 to n), element_id the address of the bus, branch or controller (empty for a step quantity), quantity a name from QSTS_STEP_QUANTITIES, QSTS_BUS_QUANTITIES, QSTS_BRANCH_QUANTITIES or QSTS_CONTROLLER_QUANTITIES, the unit in its name. A row exists only for a solved value. The rows run by step, then step quantities, buses, branches and controllers by position, each element's quantities in list order. A named tuple of vectors is a Tables.jl column table, so DataFrame(qstsLongTable(r)) works without a dependency in Sparlectra.
Sparlectra.qstsValues — Method
qstsValues(r::QstsResult, element_id, quantity) -> Vector{Float64}The series of one quantity of one element over all steps, NaN where the long table has no row (not solved, out of service, isolated, no rating). An empty element_id selects a step quantity. Throws ArgumentError for an unknown element or a quantity that does not belong to its kind.
Sparlectra.runQsts — Method
runQsts(series::SCFSeries; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> QstsResult
runQsts(union::CGMESSeriesUnion; config, ...) -> QstsResultQSTS mode A (qsts.mode = snapshots): solve every step of a series on its own. The input is not changed.
- Checks, each an
ArgumentErrorwith the key named:qsts.mode = snapshots,power_flow.solver = rectangular,power_flow.modenotauto,power_flow.external_grid.enabled = false; for a CGMES union alsocgmes_import.*equal to the configuration the union was built with. The deltas passvalidate_scenariosagainst the template, but atap_posop on a transformer with a tap controller (of the case or ofcontrol.controllers) is refused only when the controllers run (qsts.snapshot_controls = truewithcontrol.enabled). - The base case: the template solved with
config(for an SCF series the base case of the file, for a CGMES union the snapshot of its base step). - Every step: a fresh copy of the unsolved template, the full delta of the step (
apply!), one solve. A step of an SCF series starts from the bus voltages of the base solution. A step of a CGMES union starts from the state of its own snapshot: its delta carries the start of every bus the snapshot keeps in service (the SV voltage, without one the neighbour start of the importer), whatever the base case gives; there is no warm start and no fallback to one. Steps of an SCF series are marked for isolation again by the rule of the power flow (markIsolatedBuses!withlinks = true: a bus behind a closed link is in service with its link group), and a part of the net without a source (no unit with P > 0 or voltage regulation) is isolated with its injections zeroed, as the CGMES import does; one note per such step names the buses and the load left unsupplied. A CGMES delta carries the isolation itself, and a bus it isolates only for lack of a branch of its own gets the values of its link group while the group is solved. An isolated bus in a closed-link group with a live member starts at the voltage of the first live member, since the solver starts the group from its smallest bus.
Taps and shunt banks stay at the values of each snapshot: base and steps run with control.enabled = false. With qsts.snapshot_controls = true the control section of config applies in the base case and in every step. The step configuration switches off the start generators and the rescue paths (power_flow.rescue, dc.fallback, wrong_branch_rescue), power mode and the island parallelism, and switches the flat start off when the steps have a start (a converged base case, a CGMES snapshot); QstsResult notes list every key that differs from config.
The steps run in parallel over Julia threads under the runtime.parallel switches of config (the keywords override them); parallel and serial runs give identical results. progress(done, total) is called once per finished step.
Element addresses: for a CGMES union the mRID (union topological node, line, two-winding transformer, transformer end of a three-winding leg, <PowerTransformer mRID>#star, <mRID>#<class> for a reused mRID); the node addresses follow the base step. For an SCF series the component id.
With qsts.mode = sequential the SCF method runs QSTS mode B instead: the steps in order, taps and banks carried from step to step; see runQsts(::AbstractVector{SCFSeries}); the CGMES method does the same.
Sparlectra.writeQstsResults — Method
writeQstsResults(dir, rs::AbstractVector{QstsResult}; format = result_csv_format()) -> Vector{String}Write the results of a run on several series, each into dir/series_<k> as writeQstsResults writes one result; each manifest adds series (k) and n_series. Returns all paths in series order.
Sparlectra.writeQstsResults — Method
writeQstsResults(dir, r::QstsResult; format = result_csv_format()) -> Vector{String}Write a QSTS run into dir (created when missing) and return the paths, four for a snapshot run:
qsts_values.csv: the long format ofqstsLongTable, columnsstep, element_id, quantity, value, written one step at a time;qsts_steps.csv:step, label, timestamp, is_base, status, control_status, iterations, outer_iterations, residual, n_frozen, reference, message, withreferencethe addresses of the slack buses joined by|;qsts_elements.csv:element_id, kind, name, from, to, vn_kv, rating_mvafor every bus (kindbus, orstar_pointfor the star point of a three-winding transformer), branch (line,transformer) and, in a sequential run, controller (controller, with the actuator infromand the regulated bus into);qsts_manifest.json: formatsparlectra-qsts-result,format_version1.0, name, origin, mode, number of steps, base step, step length, the base case,power_flow.max_iterandtol,qsts.snapshot_controls,cgmes_import.tap_controlandmap_energy_source, and the notes; a sequential run adds theqstskeys of mode B andn_failed.
A sequential run writes two files more:
qsts_switching.csv:qstsSwitching, columnsstep, element_id, old, new, steps, trigger;qsts_metrics.csv:qstsMetrics, columnselement_id, metric, value.
The CSV files follow format (output.csv_format); numbers are written with 15 significant digits. The content holds no times, so two runs of the same input give the same bytes.
Sparlectra.qstsMetrics — Method
qstsMetrics(r::QstsResult) -> (element_id, metric, value)The metrics of a sequential run as a named tuple of three column vectors:
- the run (
element_idempty):n_steps_solved,n_failed,switch_count_total,n_hunting_total,n_resync,loss_energy_mwh(sum oftotal_p_loss_mwtimes the step length over the solved steps); - each controller:
switch_count(sum of the counted steps),n_hunting(patterns of three counted moves with alternating sign withinqsts.hunting_windowsteps; a resync step breaks a pattern),steps_at_limit,steps_locked,max_abs_dpos_ref,rms_dpos_ref; - each bus outside
qsts.vm_min_puorqsts.vm_max_puand each branch aboveqsts.loading_max_pctin at least one step:<kind>_episodes(consecutive steps in violation; a step without a value ends one),<kind>_steps,<kind>_minutesand<kind>_max_puor_max_pct(the largest excess beyond the limit), with<kind>vm_low,vm_highoroverload.
The step length is step_minutes of the series, else the distance to the next timestamp; without either the _minutes rows and loss_energy_mwh are left out. Empty for a snapshot run; written as qsts_metrics.csv by writeQstsResults.
Sparlectra.qstsSwitching — Method
qstsSwitching(r::QstsResult) -> (step, element_id, old, new, steps, trigger)The tap and bank moves of a sequential run as a named tuple of equally long column vectors, one row per step and controller whose position changed (the net move of the step: a search back and forth inside one controller run is not listed, it shows in outer_iterations). old is the position at the end of the step before (the carried one), new the position at the end of the step, steps = new - old, positions as in QSTS_CONTROLLER_QUANTITIES. trigger is "control" (counted in the switch count), "range" (the position stood outside the control range before the solve) or "resync" (a resync step, which starts from the position of the series). Empty for a snapshot run; written as qsts_switching.csv by writeQstsResults.
Sparlectra.runQsts — Method
runQsts(series::AbstractVector{SCFSeries}; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> Vector{QstsResult}QSTS on several SCF series, one QstsResult per series. With qsts.mode = snapshots each series is a snapshot run (see runQsts), one after the other. With qsts.mode = sequential it is QSTS mode B; runQsts(series::SCFSeries; config) with that mode is the run on one series.
Mode B solves the steps of a series in order, each on a fresh copy of the template with the full delta of the step and the outer-loop controllers of the control section running (control.enabled = false runs without them). The state of the tap controllers (masters and followers) and the shunt bank controllers goes from the last solved step to the next:
- The base case is solved with the controllers; its solution is the start of step 1.
- Every step: the start voltages (
qsts.sequential_start = previous: the solution of the last solved step,snapshot: the solution of the same step in a snapshot run without controllers; a bus without a value there takes the base solution), the full delta (for a CGMES union without the snapshot start values of a snapshot run), the taps and banks the series gives the step read as reference, then the carried taps and banks written absolutely, then one solve with the controllers. - Resync steps (step 1 always, and with
qsts.resync_every = nevery step with(k - 1) % n == 0) keep the taps and banks of the series and clear the dead time and the hunting memory. qsts.dead_time_steps = dlocks a controller for the d steps after a counted move (enabled = falsein those steps). A locked controller that does not stand at an end of its range also holds every controller with a larger priority number in that step.- A step that does not converge holds taps, banks and start voltages of the last solved step; its dead time runs on.
A tap_pos op on a transformer with a tap controller is the reference position of its step (notes says so). The step configuration is the one of a snapshot run with controllers, the island parallelism follows runtime.parallel for one series and is off for several. The checks of a snapshot run apply, with qsts.mode = sequential.
The result adds controller elements (QstsElements.controller_ids), the values of QSTS_CONTROLLER_QUANTITIES, the step quantities of mode B in QSTS_STEP_QUANTITIES, the switching list (qstsSwitching) and the metrics (qstsMetrics).
Several series run in parallel over Julia threads under runtime.parallel (the keywords override it); the steps of one series run in order. Parallel and serial runs give identical results. progress(done, total) is called once per finished step over all series in mode B, once per step and series in mode A.
Sparlectra.QstsEventList — Type
QstsEventListThe events of a sequential QSTS run, one entry per CSV row in file order: step (from 1), element_id (the address of the element: the component id of an SCF case, the mRID of a CGMES union element), action (:open, :close, :in, :out) and line (the CSV line, named in later errors). source is the file name without its path. Read with readQstsEvents, turned into a series with qstsEventSeries.
Sparlectra.qstsEventSeries — Method
qstsEventSeries(base::SCFCase, events::QstsEventList; n_steps = largest event step, name) -> SCFSeries
qstsEventSeries(union::CGMESSeriesUnion, events::QstsEventList; n_steps = largest event step) -> CGMESEventSeriesA series driven by an event list instead of snapshot deltas: step k holds the full delta of the switching state after all events up to step k (an element keeps its state until its next event; an event that restores the base state removes the op). Nothing else changes between steps, so a sequential run (runQsts with qsts.mode = sequential) shows the voltage jumps, flow shifts, violations and islands of the switching sequence. The SCF series has no time reference and carries the source and the row count under provenance["event_list"], which write_scf_series keeps. A snapshot run refuses an event series, and so does qsts.sequential_start = snapshot. Errors name the CSV line of the event.
Sparlectra.readQstsEvents — Method
readQstsEvents(path) -> QstsEventListRead an event list. The file is UTF-8 CSV with comma and LF (a byte order mark is dropped); the first line is exactly step,element_id,action,value, every other non-empty line one event:
| Column | Rule |
|---|---|
step | whole number from 1 |
element_id | not empty; resolved against the series by qstsEventSeries |
action | open, close (branch, transformer, switch) or in, out (unit, load, shunt) |
value | empty |
An element takes one event per step. A state holds until the next event of the same element. Every error is an ArgumentError naming the file and the line.
Sparlectra.QstsChart — Type
QstsChartThe chart of one quantity of one element over the steps of a QstsResult, built by qstsChart: element_id, quantity, labels (axis label per step), values (NaN where the step has no value), band ((low, high) with NaN for an open side, nothing without a band) and svg, the chart as SVG text. show(io, MIME"image/svg+xml"(), c) writes the SVG, so notebooks and Documenter display it directly.
Sparlectra.qstsChart — Method
qstsChart(r::QstsResult, element_id, quantity; band = :auto, width = 720, height = 260) -> QstsChartThe time series of one quantity of one element (an empty element_id selects a step quantity, see qstsValues) as an SVG chart: one point per step with a value, joined by a line that breaks at a step without a value, each point with a tooltip (<title>: step, label, value), the axis labelled with the first and the last step label and the value range. band = :auto draws the voltage band qsts.vm_min_pu/qsts.vm_max_pu for vm_pu and the limit qsts.loading_max_pct for loading_pct as dashed lines; a (low, high) tuple draws that band (NaN leaves a side open), nothing none. The SVG holds no script and no time stamp, so equal results give equal bytes. Throws ArgumentError for an unknown element or quantity and for a band of another form.
Sparlectra.CGMESEventSeries — Type
CGMESEventSeriesAn event series on the union network of a CGMES snapshot series, built by qstsEventSeries: union (its template in the state of the base step is the base of every step), ops (the full delta of each step), labels ("1" to "n") and event_list (source file and row count). The steps have no time reference and no SV. Run it with runQsts and qsts.mode = sequential.
Sparlectra.runQsts — Method
runQsts(unions::AbstractVector{CGMESImporter.CGMESSeriesUnion}; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> Vector{QstsResult}QSTS on several CGMES series unions, one result per union: one snapshot run after the other with qsts.mode = snapshots, the unions in parallel and the steps of each in order with qsts.mode = sequential, as for runQsts(::AbstractVector{SCFSeries}). Every union must have been built with the cgmes_import settings of config.
Sparlectra.runQsts — Method
runQsts(series::CGMESEventSeries; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> QstsResultThe sequential run (qsts.mode = sequential) of an event series on a CGMES union; see runQsts(::AbstractVector{SCFSeries}). Like a step of an SCF series, each step is marked for isolation by the rule of the power flow and an island without a source is isolated. config.cgmes must equal the configuration the union was built with.
Sparlectra.runQsts — Method
runQsts(union::CGMESImporter.CGMESSeriesUnion; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> QstsResultQSTS on the union network of a CGMES snapshot series; see the SCF method of runQsts for the run itself. Step k applies the full delta of snapshot k (ops and control_ops: banks take the SSH sections, taps the SSH steps with cgmes_import.tap_control = true and the SvTapStep positions with the default false), the base case is the snapshot of union.base_step, and every step is compared with the SV state of its snapshot (union.sv). With qsts.mode = snapshots each step starts from the state of its snapshot (start_ops of its delta, see CGMESImporter.CGMESSnapshotDelta), not from the base solution. config.cgmes must equal union.import_config field by field, or template, delta and run would not fit together; an ArgumentError names the keys that differ.
With qsts.mode = snapshots every step is solved on its own (mode A). With qsts.mode = sequential the steps run in order with the tap and bank state carried from step to step (mode B, see runQsts(::AbstractVector{SCFSeries})); the taps and banks of each snapshot are then the reference positions of its step.