Skip to content

Commit

Permalink
Merge pull request #103 from tlambert03/stubs4
Browse files Browse the repository at this point in the history
update stubs
  • Loading branch information
marktsuchida authored Dec 1, 2023
2 parents 6012247 + 454234b commit 111fe81
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pymmcore/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,20 @@ class CMMCore:
"""Enables or disables the operation of the continuous focusing hardware device."""
def enableDebugLog(self, enable: bool) -> None:
"""Enable or disable logging of debug messages."""
def enableFeature(self, name: str, enable: bool) -> None:
"""Enable or disable the given Core feature.
Core features control whether experimental functionality (which is subject
to breaking changes) is exposed, or whether stricter API usage is enforced.
Currently switchable features:
- "StrictInitializationChecks" (default: disabled) When enabled, an
exception is thrown when an operation requiring an initialized device is
attempted on a device that is not successfully initialized. When disabled,
no exception is thrown and a warning is logged (and the operation may
potentially cause incorrect behavior or a crash).
"""
def enableStderrLog(self, enable: bool) -> None:
"""Enables or disables log message display on the standard console."""
def fullFocus(self) -> None:
Expand Down Expand Up @@ -639,6 +653,11 @@ class CMMCore:
"""Returns the lock-in status of the continuous focusing device."""
def isExposureSequenceable(self, cameraLabel: str) -> bool:
"""Queries camera if exposure can be used in a sequence"""
def isFeatureEnabled(self, name: str) -> bool:
"""Return whether the given Core feature is currently enabled.
See `enableFeature()` for the available features.
"""
def isGroupDefined(self, groupName: str) -> bool:
"""Checks if the group already exists."""
def isMultiROIEnabled(self) -> bool:
Expand Down

0 comments on commit 111fe81

Please sign in to comment.