Skip to content
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

add getDeviceInitializationState to type stub #93

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pymmcore/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ DeviceType = int
PropertyType = int
FocusDirection = int
DeviceDetectionStatus = int
DeviceInitializationState = int

class CMMCore:
def __init__(self) -> None: ...
Expand Down Expand Up @@ -693,6 +694,8 @@ class CMMCore:
"""Initialize circular buffer based on the current camera settings."""
def initializeDevice(self, label: str) -> None:
"""Initializes specific device."""
def getDeviceInitializationState(self, label: str) -> DeviceInitializationState:
"""Queries the initialization state of the given device."""
def isBufferOverflowed(self) -> bool:
"""Indicates whether the circular buffer is overflowed"""
def isConfigDefined(self, groupName: str, configName: str) -> bool:
Expand Down