Repository navigation
Update the gold 4D-STEM drift tutorial for MPS and CUDA - #19
Merged
bobleesj merged 1 commit intoNov 21, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.