Skip to content

Add class to wrap multiaxis controllers to mimic single-axis piezo object#1368

Merged
David-Baddeley merged 2 commits into
python-microscopy:masterfrom
barentine:singleaxisonmulti
Jun 15, 2023
Merged

Add class to wrap multiaxis controllers to mimic single-axis piezo object#1368
David-Baddeley merged 2 commits into
python-microscopy:masterfrom
barentine:singleaxisonmulti

Conversation

@barentine
Copy link
Copy Markdown
Member

Some existing code e.g. focus lock code is currently configured for a single-axis PiezoBase object. This SingleAxisOnMultiaxisController is essentially a shim to wrap a given axis of an initialized multiaxis controller as a single axis PiezoBase. This lets one use the focus lock code as normal even if your z axis is controlled by a 3-axis stage.

Is this a bugfix or an enhancement?
enhancement

…existing code that acts like a controller is single axis
@David-Baddeley
Copy link
Copy Markdown
Contributor

Seems reasonable, only potential critique is that class name is a bit verbose - I wonder if it makes sense to change to, e.g. SingleAxisWrapper or SingleAxisPassthrough

@barentine
Copy link
Copy Markdown
Member Author

I'm good with that. Changed to SingleAxisWrapper. Thanks @David-Baddeley

@David-Baddeley David-Baddeley merged commit 3e6e5f2 into python-microscopy:master Jun 15, 2023
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