from abc import ABCMeta, abstractmethod
from typing import Any
from .interface import Interface
class IExposureTime(Interface, metaclass=ABCMeta):
"""The camera supports exposure times, to be used together with :class:`~pyobs.interfaces.ICamera`."""
__module__ = "pyobs.interfaces"
[docs] @abstractmethod
async def set_exposure_time(self, exposure_time: float, **kwargs: Any) -> None:
"""Set the exposure time in seconds.
Args:
exposure_time: Exposure time in seconds.
Raises:
ValueError: If exposure time could not be set.
"""
...
[docs] @abstractmethod
async def get_exposure_time(self, **kwargs: Any) -> float:
"""Returns the exposure time in seconds.
Returns:
Exposure time in seconds.
"""
...
[docs] @abstractmethod
async def get_exposure_time_left(self, **kwargs: Any) -> float:
"""Returns the remaining exposure time on the current exposure in seconds.
Returns:
Remaining exposure time in seconds.
"""
...
__all__ = ["IExposureTime"]