Imports, exports and datasets
A model reads inputs through Stella import blocks and writes results through export blocks. Experimenter drives both from the outside, on a throwaway copy of the model. Nothing on this page touches the model file itself: every data entry lands on that copy only.
Every example uses invented variable names. Prepare files against the model’s real variables and units.
How a Run’s data entries work
Each Run declares one flat list of data entries, keyed by file name. The
file value decides what an entry does:
file value | Effect |
|---|---|
A path (inputs/Historical.csv) | Experimenter copies the file into the Run copy. A basename match places it over that block’s resource. No match injects a new block. |
A bare name (Historical.csv) | Experimenter edits the matching block’s attributes and places no file. For an export, a bare name can also inject a new export block. |
- Matching is by basename only. No model-specific rule applies.
- Providing a file enables its block, unless the entry sets
enabled: false. - Absent fields leave the block’s native state untouched. An entry overrides only the fields it names.
Field syntax: YAML Configuration Reference.
Import vocabulary
Experimenter exposes the same options as Stella’s own Import Data dialog, on two independent axes.
Behavior is what the import does, Stella’s own Import Data dialog wording. Exactly one applies per import:
| Behavior | YAML behavior: | Meaning |
|---|---|---|
| Load time varying values | timevarying | Read a time series and feed it throughout the run. Takes an interpolation mode: Continuous (default), Inside, Extrapolated, Discrete (backward), Discrete (forward), or Raw. |
| Control variables | control | Load a value at run start (the default behavior). |
| Set parameters | overwrite | Overwrite model constants at run start. See Overwrite semantics. |
| Set array dimensions | dimensions | Size an arrayed model’s dimensions from the file. |
Interpolation enables only under the Load time varying values behavior.
Link type is Stella’s own Import Data classification, Dynamic or On Demand. Both fire at the start of a headless run here: Experimenter always launches Stella with its Import Now trigger, the same trigger On Demand waits for. Link type does not change whether a run-time import fires in Experimenter. The File Settings form does not offer On Demand with the Load time varying values behavior.
Source. Experimenter reads and writes CSV files only. A model’s import block can carry another type. The read-only Source row of File Settings shows the own data block path of the model. A read-only Workbook row shows the type and, when the model names one, the sheet. It appears only for a block whose type is not CSV.
Browse shows disabled. Experimenter writes the data file beside the model and never rebinds the block. Both rows show read-only. An export shows Destination in place of Source, with the same limits.
Experimenter never checks a file against that type. A file that you supply for such a block must match the type of the block.
A long Source value shows its start and end with an ellipsis between them. Point at the field to read the full value. Click it to select and copy the full value.
Why a supplied file appears to do nothing
Every enabled import fires here, Dynamic or On Demand, including one the
YAML never names: an import block the template’s own .stmx
already carries (its own Parameters.csv, say) fires the same way, on the
first stage and on every unchained optimize Run, matching what Stella’s own
Import Now does. Experimenter logs the resolved file and row count at
launch for a fit carrier, so you can see this. The import itself needs no
YAML entry to fire. If a prepared input file’s values do not reach the run,
check first if its block is disabled (enabled: false, or native to
the model). A disabled import loads nothing, and Experimenter warns when
an entry supplies values for one.
A Set parameters import onto a variable that is not a model constant is also ignored. See Overwrite semantics.
Overwrite semantics
A Set parameters import replaces model constants at run start with the file’s values.
- It overwrites constants only. A computed variable keeps its own equation.
- An enabled overwrite import wins over anything else delivered for the same variable.
- Manage import state explicitly. Disable the blocks a Run does not use
(
enabled: false), so a shipped overwrite import cannot overwrite the scenario inputs. validatewarns when two enabled overwrite imports set the same variable, and names both files and the shared variables. The warning orders the two by their position in the model file. Experimenter has not measured which one Stella applies last. Treat the later one in the model file as the expected winner, not a proven one.
Input CSV formats
Files carry no units row. Every value is in its variable’s model units. The
engine auto-detects orientation, so the orientation field records intent
and a correctly shaped file loads either way. There are three shapes.
Vertical time series, the common shape for Load time-varying imports and comparison data. Time runs down the first column, one variable per column:
Year,Widgets Produced,Fuel Burned
2000,1200,340
2001,1265,352Horizontal time series, the transpose. Time runs across the first row,
one variable per row. Set orientation: horizontal to record the intent:
Year,2000,2001
Subsidy Rate,0.10,0.10
Import Tariff,0.05,0.05Key/value constants, the shape a Set parameters import consumes and the
shape a calibration writes its fitted Parameters.csv in. One name,value
row per variable, with no time column and no header:
Starting Inventory,500
Discount Rate,0.04Hand-editing. Stella’s importer is byte-sensitive: a rewritten file that normalizes rows or quoting can make the engine reject it. To change one value, use Experimenter’s per-cell overrides, which edit only the target field’s bytes (YAML Configuration Reference).
How Experimenter captures output
In any mode, you need no export block to collect results.
- With no variable list set, Experimenter injects a full-model capture into the Run copy. The Run’s Save Interval setting (Run Tab) thins it, as it thins any model-defined export.
- Set a variable list (the Output Settings tab of the Settings pane,
or
output_variables:) to scope the capture to named variables. Experimenter authors a Table plus its own export in the Run copy. It resolves Run > group > file. - Either form coexists with the model’s own exports. Both write in the same run.
- A Sensitivity always authors a comparative table, so Stella returns full data past its own retention cap. See Sensitivity.
- A non-empty capture is the success signal. Stella runs occasionally exit cleanly and write nothing, so Experimenter retries a run that comes back empty.
- During the run, Experimenter merges each verified capture into the collected
Output.csv. Only the top file per scope survives. See Outputs & Manifest for where results land.
Export scope
A data entry can configure a model export’s interval, format,
precomputed, orientation, and scope, the variables it writes. Five
forms:
scope: | Writes |
|---|---|
all | Every variable. |
parameter_values | Every model parameter, name and value (Stella’s Parameters export). No variable list needed. |
my-list.txt | The variables named in a text file, one per line, resolved relative to the Experiment file. In the GUI, the … button is the only way to set it. |
table plus table: <name> | A Report/Table view widget the model defines, by display name. Add interval: use_settings to use the widget’s own interval. A name Experimenter cannot find warns, never blocks. |
| absent | Inherit the model’s own export setting. An inherited table scope never counts as a maintained variable list. A calibration cannot use it as a fit-carrier list. |
The File Settings form names the scope Data Source. It offers All Model Variables, Parameter Values, Variables Listed in File, Table, and Tag.
Export Interval offers One Set of Values (one_value), Every Save Interval
(DT), Current Time (current_time), and Use Table Settings (use_settings).
Use Table Settings needs the Table data source. The Every row shows
disabled. A numeric interval belongs to a Table, which Experimenter does not
write.
An inline list (scope: [a, b]) still loads. The Variables box stays
empty for it, and picking a file replaces it with a file reference.
In the File Configuration table, the Behavior column of an export names its scope. It uses the Data Source labels of Stella. These are All Model Variables, Parameter Values, Variables Listed in File, Table and Tag.
A long file path in the Variables box shows its start and end with an ellipsis between them. Point at the box to read the full path.
A tag: key is a sixth form, exclusive with scope:: tag: Levers writes
<isee:tag>Levers</isee:tag> in place of <all/>, exporting every variable
carrying that documentation tag. Setting both scope: and tag: on one
entry fails validation.
The fit carrier is a pair
For a calibration, one file must be both an export and an import, whatever their own interval or behavior. A one-set-of-values export paired with a Set parameters import is the common shape: it writes the fitted constants in a single row, and the next Run reads them back at its start. It is not the rule. Any file that gets chained, at any interval or import behavior, is a carrier.
- Experimenter checks the pair on the effective run copy: the model’s own blocks
with the entries applied. A model that already imports and exports its
Parameters.csvis a carrier with zero entries. - An export with no matching import is not a carrier, at any scope.
- A calibration needs exactly one pair. Two is an error. With none, Experimenter warns, names the missing half, and runs anyway, handing nothing forward.
Best practices for exports
- Rely on the injected capture and the collected
Output.csvrather than a hand-built full-model export. - Scope a narrow export with a variable list. A scopeless entry over a list-scoped model block inherits the model’s own list.
- For an arrayed calibration, prefer a
scope: parameter_valuescarrier. It carries every array element with no list. A list carrier works too, but it must name every concrete element of a[*]parameter. - Never write an export. Stella writes exports. Name an export entry with a bare file name, never a path.
The dataset-folder overlay contract
A Sequence or dataset sweep runs one configuration against several input sets, each in its own flat folder of input files named exactly as the model expects.
- Basename match. Experimenter copies every top-level file of the model folder into the run copy, and takes a file from the dataset folder when a same-named file is present. Experimenter does not copy directories, and it excludes its own capture file.
- Exports are never overlaid. Only inputs come from the dataset folder.
- Model replacement. A dataset folder may hold a file with the name of a
model file, such as
Model.stmx. The run copy takes that file in place of the model file. The entry of the job inbatch.jsonnames each replaced file undermodel_replaced. It also holds the dataset folder and the sha256 hash of the new file. The commandexperimenter resultsprints onemodel replaced:line for each file. To vary a value between runs, give the run a CSV file. Model replacement swaps a whole file. It has no key for one equation. - Experimenter ignores a dataset-only file. The overlay replaces model-folder files by basename and never adds a file the model folder does not already hold.
- Base fallback, with a warning. A file missing from the dataset folder
falls back to the model’s base copy. Experimenter logs one warning per file in
the Monitor and records the fallback in the job’s entry in
batch.json. A dataset that falls back for a file meant to vary runs on the base input. - A Script in a stage reads the saved folder. When the GUI launches an Experiment, it writes a temporary copy. A stage Script takes its dataset base from the folder of the saved Experiment file, not from that copy.
To build the folders, follow Create Datasets for Sequencing.
See also
- Concepts (Glossary): the terms used here.
- Outputs & Manifest: where results land.
- YAML Configuration Reference: every data-entry field.
- Troubleshooting: empty runs, retries, fallbacks.
Return to Install Experimenter, the first page of the documentation.