Skip to content

studio: forget the metrics of a previous launch when a run is launche… - #11

Merged
ptrembli merged 1 commit into
mainfrom
fix/reset-metrics
Nov 29, 2026
Merged

ptrembli merged 1 commit into
mainfrom
fix/reset-metrics

Conversation

@ptrembli

Copy link
Copy Markdown
Contributor

The metrics of a run (job.doc["metrics"]: number of outputs, final time, Mcell-updates/s) are
computed by the operation metrics of the campaign's project.py once the run is finished, and
only when the run has none (post-condition has_metrics; the studio also asks only for missing
metrics). Two ways of launching a run again left the old ones in place, so the new launch kept
them:

  • Prepare again moved the record of the previous launch (submitted, launched, canop,
    physics) to doc["history"] but not metrics. This is the path for a campaign cloned from its
    git repository: the studio commits the job documents, metrics included, so the clone shows the
    metrics measured on the machine of whoever ran it first, and the relaunched runs kept them in
    the Analysis tab and campaign_status.
  • Run tab: relaunching a finished run of a campaign removed its outputs, log and job id, but
    not its metrics.

Now metrics moves to the history with the rest of the record on Prepare again, and is removed
with the outputs on a relaunch from the Run tab.

Checks

Offline, with an isolated configuration (CANOP_STUDIO_CONFIG), on a clone of
canoPdev/tutorial placed in the campaigns directory of
another build:

  • the 5 runs show as failed (submitted, no file); Prepare again sets them to prepared, with no
    metrics left and the old ones in history;
  • _clear_outputs removes the outputs, the log and the metrics, and works on a run with no metrics.

Also checked on that clone: the absolute paths of a campaign repository are only in
signac_project_document.json (launch.executable, launch.command, base_ini_path). launch
is rewritten from the settings of whoever submits, at each submission from the studio;
base_ini_path is only shown; signac-flow's cached _status is not used to choose what to
submit. A cloned campaign therefore runs elsewhere once its runs are prepared again.

check_i18n.py: 322 texts, 0 errors (no new text).

🤖 Generated with Claude Code

…d again

"Prepare again" moved the record of the previous launch of a run to its
history but left its metrics, and a relaunch from the Run tab removed the
outputs but not the metrics. project.py computes the metrics of a finished
run only when it has none, so the new launch kept the old numbers: in a
campaign cloned from its git repository, those measured on the machine of
whoever ran it first. The metrics now go to the history with the rest of
the record on "Prepare again", and are removed with the outputs on a
relaunch from the Run tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptrembli
ptrembli merged commit d7720f3 into main Nov 29, 2026
2 checks passed
@ptrembli
ptrembli deleted the fix/reset-metrics branch November 29, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant