-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
squid: abc: Add the AbstractCamera interface, and a simulated camera implementation #61
base: master
Are you sure you want to change the base?
Conversation
4bd7a7b
to
166ae9b
Compare
zaber filter wheel
39f19ea
to
64fd872
Compare
64fd872
to
5d6dbcb
Compare
software/squid/camera/utils.py
Outdated
_log = squid.logging.get_logger("squid.camera.utils") | ||
|
||
|
||
def get_camera(config: CameraConfig, simulated: bool = False) -> AbstractCamera: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not actually AbstractCamera
, but in an effort to make this not a totally insane single PR I'm breaking it up into a few.
# some cameras had in the pre-AbstractCamera days. | ||
self._missing_methods = {} | ||
|
||
class MissingAttribImpl: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed once the migration to AbstractCamera
is done, but is useful for finding missed migrations.
5ddf111
to
309e85a
Compare
309e85a
to
e6ffbaf
Compare
This adds the AbstractCamera and simulated camera, but without touching existing machinery. A follow up PR will integrate this into the system.
Tested by: unit test on simulated camera creation and basic functionality.