Skip to content

fix(afm): calibrate force curves and fit in place - #194

Merged
nmrtist merged 1 commit into
mainfrom
fix/afm-force-fit
Nov 21, 2026
Merged

nmrtist merged 1 commit into
mainfrom
fix/afm-force-fit

Conversation

@nmrtist

@nmrtist nmrtist commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Correct NanoScope ramp and spring-constant calibration so AFM force curves use physical Z and force axes when calibration is available.
  • Fit Approach or Retract directly on the source plot by default, without changing the viewport or opening a sheet. Offer a plot copy, a residual plot, and a fit data sheet on demand.
  • Restore AFM heatmaps, force curves, and fit overlays when reopening projects.

Validation

  • cargo pr-check passed, including AFM import, undo/redo, project round-trip, and output regression tests.
  • npm run build passed in docs/.
  • The reporter verified the fit and updated workflow on the original NanoScope sample.
  • Captured the fit overlay and results panel using synthetic AFM data. The macOS capture harness reported SIGILL after writing the image.

UI display logic

  • New or changed actions go through the command catalog (CommandId + describe) and are searchable in the command palette.
  • Hiding happens only at Ribbon-group level (dataset kind or width budget); transient states disable with a disabled_reason that says how to unblock.
  • No layout changes from background events; panels are never auto-closed.
  • New panels or empty regions show an empty state with a next step.
  • Docs updated in docs/ (English and zh-CN) for user-visible behavior.

@nmrtist
nmrtist merged commit 1ba2a79 into main Nov 21, 2026
11 checks passed
@nmrtist
nmrtist deleted the fix/afm-force-fit branch November 21, 2026 07:21
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