Repository navigation
Add a simulated MOKE bench with balanced detection - #7
Merged
Merged
Conversation
Five plugins on one simulated bench (shared as master/slave controller): actuators MokeMagnetSim (field, mT), MokeWavePlateSim (balance), MokeSampleRotationSim and MokeGoniometerSim (geometry), and the 0D detector MokeBalancedSim (diode A, B, difference, sum in V). Stoner-Wohlfarth vector magnetisation (or a scalar tanh loop), polar and longitudinal Kerr terms depending on the geometry, optional shot, electronic and laser noise, gain imbalance, Faraday background and drift. Raw signals only: the Kerr rotation and the semantic annotations are left to the extension. Tests of the physics and of the plugins with the PyMoDAQ harness. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKuN83Dwt3z6raRcp2PsVh
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Side view (angle of incidence, field direction), top view (sample rotation, easy axis, field azimuth) and the polarisation in front of the beam splitter (half-wave plate angle, Kerr rotation, balance), each tied to the plugin or setting that controls it. The script that draws it is in docs/. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKuN83Dwt3z6raRcp2PsVh
seb5g
marked this pull request as ready for review
November 25, 2026 20:44
…hinx on GitHub Pages Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKuN83Dwt3z6raRcp2PsVh
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.
Simulated MOKE bench with balanced detection, to run scans and test extensions without hardware.
Stacked on #6 (alignment with the template): the base is that PR's branch so the diff only shows the simulator. After #6 is merged GitHub retargets this PR to
5.3.x.Plugins
All five share one simulated bench through the controller (same controller ID, one master, the others slaves; a plugin alone is its own master).
DAQ_Move_MokeMagnetSimDAQ_Move_MokeWavePlateSimDAQ_Move_MokeSampleRotationSimDAQ_Move_MokeGoniometerSimDAQ_0DViewer_MokeBalancedSimdiode_A,diode_B,difference,sumin V (one Data0D)Choices made with the maintainer: one plugin per instrument, B field in mT, raw signals only (the extension computes the Kerr rotation and adds the semantic annotations), imperfections all optional.
Model
A - B = P sin(2 theta_K)at balance, offset and loss of sensitivity away from it; the zero of the plate can be given a hidden offset.Checked
pytest: 34 passed, 4 skipped (12 tests of the physics, 11 of the plugins throughpymodaq.utils.plugin_testing: moves, home, shared controller, loop, balance, settings reaching the bench).check_plugin: the five new modules are[ok]. The remaining warnings are in the existing plugins.Generated by Claude Code