torchcell.utils
Shared helpers. paths resolves output directories relative to the current checkout (so a script run from a git worktree writes into that worktree); utils holds the repository-wide figure standards (the ordered plot palette, Nature panel widths in millimeters, savefig_true_size_svg() and apply_paper_style()); and file_lock provides FileLockHelper for locked JSON reads and writes.
Classes
Cross-platform file locking utility for JSON file operations. |
Functions
Walk up from |
|
<checkout>/experiments, or $EXPERIMENT_ROOT when outside a checkout. |
|
<checkout>/experiments/<experiment>/results, created if missing. |
|
<checkout>/notes/assets/images[/subdir], created if missing. |
|
Format a number into scientific notation, preserving all significant digits. |
|
Save a matplotlib figure as an SVG that imports at TRUE physical size in draw.io. |
|
Millimeters -> inches, for matplotlib |
|
Set every rcParam the repo figure standard fixes, explicitly. |
|
Map an internal representation key to its plot-display label (identity if unmapped). |
|
Draw a panel letter at the panel's top-left corner, in the repo standard. |