Skip to content
The editor shell

The editor shell

Open, save, and configure an Experiment in the one window that every mode uses.

The Run tab. Mode tabs run across the top. Markers 1 to 4: Order Add, File Configuration Add, Validate, Run.

Switch mode

  1. Click a tab: Run, Optimization, Sensitivity, Sequence, or Monitor.
  2. On an empty tab, click Open to load a file, or the New button, such as New Run, to start one.

A tab name turns red and bold when the last check found problems. Point at it to read the count. The next passing check clears it.

The one-Experiment session

A window holds one Experiment, a .expt file with one model. The file records every Run and Optimization. It records every Sensitivity and Sequence. The four mode tabs are views of that one document in memory, with no copy per tab. Opening a file replaces the whole session.

  1. Choose File ▸ Open…. If any tab has unsaved edits, Experimenter asks once: Save, Don’t Save, or Cancel. File ▸ New, Close, and Quit ask the same question.
  2. Open refuses any other file, and the status bar says so.
  3. Choose File ▸ Save (⌘S). It writes the unsaved edits of every tab, hidden ones too, into the one .expt file. Save As… asks for a new location.

Saving rebuilds a file that has comments and can lose some. Experimenter warns once. Keys and values stay unchanged.

Launch from the saved file

Every launch saves the open Experiment first, so the file on disk is the file that runs. An untitled Experiment asks for a location. A failed save stops the launch, and the Monitor state line shows why. Validate and Dry run save nothing.

The open file

The title bar, the close button, and the status bar show the open file.

  • The title bar shows the file’s icon. Cmd-click the title for the folder path.
  • A dot in the close button means unsaved edits. Saving clears it.
  • The status bar shows the file name between the model name and Saved. Point at the name to read the full path.

A new or imported Experiment reads Untitled with no icon until you save it as an .expt file.

The File menu

ItemDoes
Open…, Open RecentReplace the session. A missing recent file stays listed, disabled. Not available while a launch runs.
New (⌘N)Start a blank Experiment. Asks to save the open one first. Not available while a launch runs.
Save (⌘S), Save As…Write the .expt file.
Revert to SavedReload the saved file after a confirm. Disabled when nothing changed, the file is unsaved or no longer on disk, or a launch is in flight.
Show in FinderSelect the open file in Finder. Disabled for an unsaved Experiment or a file no longer on disk.
Close (⌘W)Close the window. Asks to save unsaved edits. During a launch, it then asks whether to stop it.

View and Run mirror tab switching and the active tab’s buttons.

Undo, Redo and Dry run

ItemDoes
Edit ▸ Undo (⌘Z), Redo (⇧⌘Z)Step back and forward through your edits on every tab, up to 100 steps. The unsaved dot clears when Undo returns to the saved state. Reset is one step, so Undo brings back what Reset discarded. In a text field, Undo first reverses the typing in that field.
What ends the historyNew, Open…, Open Recent and Revert to Saved clear it. A Save that writes changes to the model file ends it, because Experimenter cannot take a model write back. A rename of a model variable ends it too. The Log then reads “Undo history ended: the model file changed.”
The launch lockUndo and Redo are off while a launch runs, Run Enabled Sequences included. They return when it ends. See The run lock.
Run ▸ Dry runShows the plan that Run would execute, in a read-only window. It starts nothing.

The Settings window

Choose Experimenter ▸ Settings… (⌘,). Each field saves when you change it.

The Settings window.

PreferenceEffect
Default engine for new documentsThe engine a new document starts with. A file’s own engine: key and the CLI --engine flag override it. See Engine.
Stella Architect binary, Stella Professional binary, Stella Simulator binaryThe install path of each. An engine dropdown lists an edition only when its binary exists. See Supported Stella versions. A Finder launch inherits no shell environment, so set a non-standard install here.
Silence Stella GUI errors, Suppress Stella’s reopen-windows promptStop Stella dialogs from blocking an unattended Run.
WorkersHow many Runs run at once on the Experimenter engine. It also sets how many processes score the evaluations of one Optimization Run. Stella Architect runs one at a time. Empty uses the default, the physical CPU cores minus one. The memory guard lowers the worker count, a value set here included, when one Run would not fit 70% of physical memory that many times. The workers: key of a file and run --workers override it. See Parallel Experimenter engine Runs.
Write changes to model fileSee below.
Pre-build the Experimenter engine models when an Experiment opensOff by default. When on, an Experiment with an Experimenter engine Run parses its model in the background after it opens. The first Run then starts sooner. Closing the Experiment stops it. It has no effect while engine_model_cache is false in the settings file Experimenter.ini.
Output File Name, Output File LocationThe collated file’s name and the output root, default Output.csv in <model folder>/Output. A Sequence keeps its own fields.
Output retentionOn the Output tab. The Default list sets what a launch keeps on disk when the Experiment sets nothing: Everything, Outputs only, Outputs and final models, or Final chained group only. The file, a group, a Run, a Sequence and a stage can override it. The Keep failed runs in full box keeps all files of a failed Run. It is on by default. See Retention.
Output layoutWide or Long. Wide is one row per Run and variable with one column per time step. Long is one row per Run, variable and time step. The choice applies from the next launch. Excel shows at most 16,384 columns, so a wide file with more steps needs Long. See Outputs.
Python for Script steps, Rscript for Script stepsOn the Environment tab. See Choose the Python and Rscript. The tab also shows the values that the next Batch records.
Script packagesOn the Environment tab. Names each bundled script that needs a package your Python or Rscript lacks. The Create venv and install button makes the venv script-venv in the settings folder. It installs the missing Python packages there. See An environment for the bundled scripts.
Refuse a launch with uncommitted inputsOn the Trust tab. Off by default. When on, a launch refuses while the Experiment file or a model file has changes that no git commit holds. A file that git ignores counts as changed. An input outside git never refuses when no input is under git.
Runs need an approved planOn the Trust tab. Off by default. When on, a launch refuses until a person approves its plan. Use Approve in the Dry run window or experimenter approve. See the journal.
Default match for new bundlesOn the Trust tab. One Match level and one Action for each of Experimenter, the Experimenter engine, Stella, Python and Rscript. See Match policy.
Let agents connect and the five Confirm agent switchesThe Agents group. Only the person changes them. See Agents.

Reset changes

Reset, left of Validate, discards every unsaved edit and reloads the tab from its last saved state, after a confirm dialog. It is disabled on a clean or untitled document and refuses while a Run is in flight. It does not undo a model write from an earlier Save. On the Sequence tab it reloads the sequence alone. File ▸ Revert to Saved reloads the whole Experiment.

Duplicate a Run or group

Right-click a Run in Order and choose Duplicate, or a group and choose Duplicate group. A Run copies as <name> copy. A group copies with its Runs and a new group id.

Write changes to model file

Every Run executes on a throwaway copy of the model. With Write changes to model file on, the default, Save also writes model-describing settings into your .stmx.

SettingWritten on Save
Optimizer settings, payoff element settings, per-parameter boundsYes, with one Payoff kind case
Sensitivity routine settingsYes
Time window, module run selectionsNo
Comparison bindings, fitted parametersNo

Adding or removing a row queues the write until Save. A rename writes at once. The first write creates <model>.stmx.pre-experimenter-backup beside the model. The CLI never writes to the model.

See also