Skip to content

Declare the platforms supported by the instrument plugins - #33

Merged
seb5g merged 2 commits into
mainfrom
feature/supported-platforms
Nov 4, 2026
Merged

seb5g merged 2 commits into
mainfrom
feature/supported-platforms

Conversation

@seb5g

@seb5g seb5g commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Before:
Nothing told PyMoDAQ that the MMC actuators only work on Windows (they use the MMC Windows DLL through ctypes.windll).

After:
DAQ_Move_PI_MMC and DAQ_Move_PI_MMCLegacy declare supported_platforms = ('win32',): PyMoDAQ refuses to initialize them elsewhere, with a message. The other PI actuators stay undeclared, so the package classifiers are unchanged.

How: one class attribute per MMC plugin class (PyMoDAQ >= 5.3.5 reads it, older versions ignore it).

Tested: files compile. Not tested: initialization on Windows or elsewhere with a real controller; the declaration comes from the code reading.


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tdiso1u1ZhikSutj2Qs5Cg

seb5g commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

tests / tests fails on PMQ305 daq_move_PI_E870.py:17: unit 'step' is unknown from pint. The Tests workflow is already red on main (run of 2026-10-12), and this PR does not touch that file, so the failure is not from it. It needs its own fix in daq_move_PI_E870.py (a unit known from pint); I did not widen this PR.


Generated by Claude Code

… template

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tdiso1u1ZhikSutj2Qs5Cg
@seb5g
seb5g merged commit 3423681 into main Nov 4, 2026
0 of 7 checks passed
@seb5g
seb5g deleted the feature/supported-platforms branch November 4, 2026 15:55
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