Skip to content

add com/dpc imaging modes to show4dstem#121

Open
henryhng wants to merge 3 commits into
bobleesj:mainfrom
henryhng:feature/com-dpc
Open

add com/dpc imaging modes to show4dstem#121
henryhng wants to merge 3 commits into
bobleesj:mainfrom
henryhng:feature/com-dpc

Conversation

@henryhng
Copy link
Copy Markdown
Contributor

  • Add 6 center-of-mass virtual imaging modes that compute beam deflection maps from 4D-STEM dat:
    • com-x/com-y
    • com magnitude
    • iCOM - integrated COM via Fourier-space Poisson solver, recovers projected electrostatic potential
    • dCOM - divergence of COM field
    • curl (EM)
  • Corresponding tests
  • Rewrite show4dstem all_features notebook data generator to simulate SrTiO3 perovskite crystal (atomic potential gradient & BF disk shift, Bragg spots, thickness modulation) to achieve clearer/more obvious visualisations
Screenshot 2026-04-22 at 2 11 08 PM

@henryhng
Copy link
Copy Markdown
Contributor Author

in test widget showcomplex, change NamedTemporaryFile to pytest's tmp_path fixture which gives an unlocked directory path (on Windows NamedTemporaryFile holds file locked so PIL cannot write to it)

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