Skip to content

fix(afm): clarify curve calibration and fit units - #195

Merged
nmrtist merged 1 commit into
mainfrom
fix/afm-curve-fit-context
Nov 22, 2026
Merged

nmrtist merged 1 commit into
mainfrom
fix/afm-curve-fit-context

Conversation

@nmrtist

@nmrtist nmrtist commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Label reconstructed AFM actuator motion as relative Z, not indentation. Show the selected branch, which file calibration values were applied, and why the curve falls back to deflection or stored signal when force calibration is unavailable.
  • Identify the existing fit as empirical, not a modulus measurement. Preserve the fitted quantities and units in the data sheet and residual plot without changing the fit numerics.
  • Update the English and Simplified Chinese manuals.

Validation

  • cargo test --offline -p plotium-core --test afm_canvas: 9 passed.
  • cargo test --offline -p plotium --bin plotium commands::afm_tests: 2 passed on the final revision.
  • cargo pr-check quick: formatting and Rust source-size checks passed. Full cargo pr-check was not rerun after the source-size fix.
  • npm run build in docs/: passed.
  • Rechecked four branches from two local NanoScope files: curve values, predictions, fit parameters, and R² were unchanged. The desktop walkthrough confirmed the fit panel and residual axes.

UI display logic

  • Existing fit actions remain in the command catalog; no actions were added.
  • No changes to Ribbon visibility, command enablement, or panel lifecycle.
  • Existing empty states are unchanged.
  • English and Simplified Chinese docs are updated.

@nmrtist
nmrtist merged commit 66b7dd2 into main Nov 22, 2026
11 checks passed
@nmrtist
nmrtist deleted the fix/afm-curve-fit-context branch November 22, 2026 12:55
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