Skip to content

Preview an unlit control as unlit; design skill fixes - #70

Merged
Harrison-Oatman merged 1 commit into
mainfrom
claude/preview-unlit-and-design-skill
Nov 30, 2026
Merged

Harrison-Oatman merged 1 commit into
mainfrom
claude/preview-unlit-and-design-skill

Conversation

@Harrison-Oatman

Copy link
Copy Markdown
Collaborator

Requested by Harrison · project thread

Fixes found by a rehearsal of a lab's first day: a headless Claude Code session with the plugin set up a lab context, designed a 3-condition experiment (unlit control, full_on, global_pulse) and ran it detached and watched on the virtual microscope.

Changes

  • pyclm preview: an experiment with [stimulation] exposure = 0 reported stimulated: true in preview.json, although the run plans no light event for it (core/plan.py). Now false; new test test_an_unlit_control_is_not_stimulated.
  • Design skill (.claude/skills/pyclm-design-experiment):
    • It said a dark control needs a custom zero-pattern method. exposure = 0 does it; the TOML still needs a [pattern] table.
    • It said preview --t counts seconds. It counts timepoints.
    • Dry runs with no microscope yet: use the demo's pyclm_config.toml, dry_run.yml and TIFs (pyclm new --demo). It said the template's values work, which was untested. dry_run.yml can also list positions.
  • documentation/experiment_tomls.md: the unlit control, one sentence.
  • CHANGELOG: one entry under Unreleased.

Pages to review: documentation/experiment_tomls.md ([stimulation]).

Order with the release

This touches CHANGELOG.md's Unreleased section, which #69 moves under 1.2.0. If you want it in 1.2.0, merge this first; I'll then bring #69 up to date so the entry lands under 1.2.0.

Checks

Full test suite: 606 passed, 21 skipped. Ruff clean on the changed files. The plugin's copy of the skill is synced on the plugin branch separately.


Generated by Claude Code

…y rehearsal

- pyclm preview: [stimulation] exposure = 0 is not 'stimulated' (the run
  plans no light event for it); test
- design skill: an unlit control is exposure = 0 with a [pattern] table
  still present; preview --t counts timepoints; dry runs with no scope use
  the demo's config, dry_run.yml (which may list positions) and TIFs
- experiment_tomls.md: the unlit control
- CHANGELOG

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pjqs6YYHnMUEkMR4uFRgYJ
@Harrison-Oatman Harrison-Oatman self-assigned this Nov 27, 2026
Harrison-Oatman pushed a commit that referenced this pull request Nov 27, 2026
…d of time

- pyclm-run: a plan folder made ahead of time (replace the config and
  positions from this scope, check against it, then the usual summary);
  rehearse on a short copy, not in place; first-minute status and watch lag
- pyclm-lab-setup: replace or drop the template's example microscope;
  setting up before any microscope is known
- start note: an admin edits the lab files only when asked; run records
  from PyCLM 1.2 on
- design skill: synced with the fixes proposed in PR #70

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pjqs6YYHnMUEkMR4uFRgYJ
@Harrison-Oatman
Harrison-Oatman merged commit 161aaf4 into main Nov 30, 2026
2 checks passed
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.

2 participants