Skip to content

studio: full run ids for analyse(), version lines in English, current… - #9

Merged
ptrembli merged 1 commit into
mainfrom
fix/studio-run-ids-version-lines
Nov 29, 2026
Merged

ptrembli merged 1 commit into
mainfrom
fix/studio-run-ids-version-lines

Conversation

@ptrembli

Copy link
Copy Markdown
Contributor

Three small fixes of canoP studio found while writing the tutorial (#3).

Full run ids for analyse()

The Analysis tab passed analyse(points, x, y) the first 8 characters of each run id, so an
analysis.py could not find the directory of a run with workspace/<id>/. It now gets the full
signac job id. summary() gives it as job_id next to the short id (the MCP tools are
unchanged). The template of analysis.py shows the first 8 characters, as the table.

Existing campaigns keep their own copy of the template: their panel will show the full ids. Code
that matched the short id as a prefix (glob, open_job) keeps working.

Version lines in English

The # [canoP studio] lines at the top of the input file of a run were in French. They are now
in English whatever the language of the studio, so file contents do not depend on it. The origin
of the version of canoP stays in French in the job documents (the interface translates it) and is
written in English in these lines.

Current keys in the examples

The example of New campaign and the description of the MCP tool create_campaign used
hydro.cfl and amr.level_max, which no longer exist: they use simulation.cfl and
amr.max_refine.

Checks

  • Offline test with an isolated configuration (CANOP_STUDIO_CONFIG): summary() / collect() on
    a signac project, the ids given to analyse() name the run directories, the template and the
    tutorial's analysis.py with full and short ids, the version lines and their replacement.
  • check_i18n.py: 322 texts, 0 errors. Sphinx -W: only the missing Doxygen on this machine.

🤖 Generated with Claude Code

… keys in examples

- The Analysis tab passes analyse() the full id of each run (the signac job id, whose directory
  is workspace/<id>/) instead of its first 8 characters, which did not name any directory.
  summary() gives it as job_id next to the short id (MCP tools unchanged). The template of
  analysis.py shows the first 8 characters, as the table.
- The "# [canoP studio]" version lines at the top of the input file of a run are in English
  whatever the language of the studio (file contents do not depend on it); the origin of the
  version of canoP stays in French in the job documents and is written in English in the lines.
- New campaign and the create_campaign MCP tool: examples with simulation.cfl and
  amr.max_refine instead of the old hydro.cfl and amr.level_max.
- Tutorial: analyse() receives the id of the run; its analysis.py still accepts the start of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptrembli
ptrembli merged commit 835a4b4 into main Nov 29, 2026
2 checks passed
@ptrembli
ptrembli deleted the fix/studio-run-ids-version-lines branch November 29, 2026 15:50
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