Skip to content

Update the gold 4D-STEM drift tutorial for MPS and CUDA - #19

Merged
bobleesj merged 1 commit into
electronmicroscopy:mainfrom
bobleesj:gold-drift-install-and-results
Nov 21, 2026
Merged

bobleesj merged 1 commit into
electronmicroscopy:mainfrom
bobleesj:gold-drift-install-and-results

Conversation

@bobleesj

Copy link
Copy Markdown
Collaborator

What problem does it solve?

The gold tutorial now shows how to set up Apple silicon or NVIDIA in Python 3.12, fit the full orthogonal scan pair, and inspect both native probe grids in the first scan’s frame.

What should reviewer(s) do?

Review the install cells and the saved before/after images. Keep this draft until a published QuantEM build includes electronmicroscopy/quantem#283, QuantEM.GPU RC18 and QuantEM.Widget RC44 are available, and both platform commands pass from a clean clone. Confirm the provisional core version pin against the published artifact.

API impact

Tutorial only. The paired plot uses drift.probe_positions(show=True).

Verification

Both source-build runs selected the same affine drift rate at every refinement. Across the same 61,149 measured pixels, NCC increased from 0.071698 to 0.952293 on MPS and 0.952294 on CUDA. Saving and reopening preserved every probe coordinate on each backend. The notebook includes two full widget captures from the MPS run and the paired probe plot.

@bobleesj
bobleesj marked this pull request as ready for review November 21, 2026 07:12
@bobleesj
bobleesj merged commit 9c3cbd5 into electronmicroscopy:main Nov 21, 2026
@bobleesj
bobleesj deleted the gold-drift-install-and-results branch November 21, 2026 07:12
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