Skip to content

Expose the SLM geometry and calibration (shaper contract of pymodaq_plugins_utils) - #5

Merged
seb5g merged 4 commits into
5.3.xfrom
feature/shaper-interface
Oct 30, 2026
Merged

seb5g merged 4 commits into
5.3.xfrom
feature/shaper-interface

Conversation

@seb5g

@seb5g seb5g commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The plugins use the shaper contract of pymodaq_plugins_utils (>=5.3.4, hardware/shaper.py): shaper_geometry (width, height, pixel_size_x, pixel_size_y, µm) and shaper_properties groups, filled in ini_stage from slmsuite (slm.shape, slm.pitch_um). The pixel size is what the driver reports (Holoeye SDK, Meadowlark SDK when it can, else the 8 µm default of slmsuite; settable with pitch_um in the arguments). The BeamShaping extension builds its Shaper from them (Get the Shaper (geometry, calibration) from the Shaper actuator pymodaq_plugins_beam_shaping#61).
  • has_internal_calibration is True for Meadowlark (lookup table loaded from the hardware by its SDK) or when slmsuite knows a lut for the SLM; False otherwise.
  • SlmController.pitch_um and SlmController.has_internal_calibration.
  • New dependency: pymodaq_plugins_utils>=5.3.4; no beam_shaping import.
  • Removes a duplicated docstring line.

Tests

Simulated SLM and fake controller (geometry, properties, LUT). Not tested on real SLMs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CAhZwmbyCSpSgfTyicUxuS

…size from slmsuite

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CAhZwmbyCSpSgfTyicUxuS
…nal calibration (slmsuite LUT, Meadowlark)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CAhZwmbyCSpSgfTyicUxuS
…se with the shaper contract)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CAhZwmbyCSpSgfTyicUxuS
@seb5g seb5g changed the title Expose the SLM pixel count and size (ShaperInterface of beam_shaping) Expose the SLM geometry and calibration (shaper contract of pymodaq_plugins_utils) Oct 29, 2026
@seb5g
seb5g marked this pull request as ready for review October 30, 2026 09:22
@seb5g
seb5g merged commit 3bb6b1e into 5.3.x Oct 30, 2026
8 checks passed
@seb5g
seb5g deleted the feature/shaper-interface branch October 30, 2026 09:22
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.

2 participants