Repository navigation
studio: forget the metrics of a previous launch when a run is launche… - #11
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The metrics of a run (
job.doc["metrics"]: number of outputs, final time, Mcell-updates/s) arecomputed by the operation
metricsof the campaign'sproject.pyonce the run is finished, andonly when the run has none (post-condition
has_metrics; the studio also asks only for missingmetrics). Two ways of launching a run again left the old ones in place, so the new launch kept
them:
submitted,launched,canop,physics) todoc["history"]but notmetrics. This is the path for a campaign cloned from itsgit 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.not its metrics.
Now
metricsmoves to the history with the rest of the record on Prepare again, and is removedwith the outputs on a relaunch from the Run tab.
Checks
Offline, with an isolated configuration (
CANOP_STUDIO_CONFIG), on a clone ofcanoPdev/tutorial placed in the campaigns directory of
another build:
metricsleft and the old ones inhistory;_clear_outputsremoves 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).launchis rewritten from the settings of whoever submits, at each submission from the studio;
base_ini_pathis only shown; signac-flow's cached_statusis not used to choose what tosubmit. 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