Skip to content

2.0.0b6: move the batch prompt to refine_mesh; release prep - #63

Merged
bbarad merged 3 commits into
mainfrom
refine-mesh-batch-prompt
Oct 7, 2026
Merged

bbarad merged 3 commits into
mainfrom
refine-mesh-batch-prompt

Conversation

@bbarad

@bbarad bbarad commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Prepares the 2.0.0b6 beta: everything already on main since 2.0.0b5, plus the batch-prompt change.

Changes

  • Batch confirmation prompt moved to refine_mesh. Refining every tomogram is the slowest pipeline step (hours per tomogram), so morphometrics refine_mesh config.yml with no --tomogram now asks before starting; -f/--force skips the prompt. distances_orientations (~15 min on the tutorial data) no longer prompts.
  • distances_orientations -f is kept as a hidden, deprecated no-op. It prints a note that it will be removed in 2.0, so existing cluster scripts that pass it keep working.
  • refine_mesh wording. Output now says "final round of refinement" instead of "accepted surface", since nothing is accepted until accept_refinement. The "not curvature-ready" warning appears only on intermediate rounds.
  • Release prep. Closes the [2.0.0b6] CHANGELOG section. The version was already 2.0.0b6.

Already on main and included in b6: mesh generation decoupled from pycurv, density samples outside the tomogram reported as missing, and vtk declared as a dependency.

Testing

  • Conda env (morphometrics-packaging): 108 passed.
  • Pip-only env matching CI (Python 3.12, latest numpy/scipy): 101 passed, 2 skipped. The new prompt tests skip without pycurv.

After merge: tag 2.0beta6 and run gh release create 2.0beta6 --title 2.0.0b6 --prerelease. The statistics work follows as 2.0.0b7.

🤖 Generated with Claude Code

bbarad and others added 3 commits October 7, 2026 09:30
…nces_orientations

Refining every tomogram is by far the slowest thing in the pipeline (hours per
tomogram, several sampling/fitting iterations plus a full pycurv pass), so that
is where an explicit "are you sure?" belongs. distances_orientations is ~15
minutes on the tutorial data and no longer prompts or takes -f/--force.

Also renames the "accepted surface" language to "the final round of
refinement" throughout: pycurv's single pass runs on the last refinement
iteration, but nothing is accepted until `morphometrics accept_refinement`.

New warn_intermediate parameter on refine_mesh_iteration (loop passes False):
the four-line "not curvature-ready" warning previously fired on every
intermediate iteration including the last one, immediately before pycurv ran
on it. The loop now emits a one-line note only when another round follows.

BREAKING: `morphometrics distances_orientations -f` is gone; scripts passing
it need updating.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The prompt moved to refine_mesh, so distances_orientations no longer needs -f, but
dropping the option outright would break existing cluster scripts that pass it
(click rejects unknown options). It is now hidden from --help, does nothing, and
prints a note that it will be removed in 2.0. Adds tests for both prompts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Close the 2.0.0b6 changelog section (no longer "unreleased") and record the batch
prompt move. pyproject and __version__ are already 2.0.0b6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bbarad
bbarad merged commit 75e831d into main Oct 7, 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.

1 participant