<reponame>pyobs/pyobs-core
from typing import Tuple

from .interface import Interface


class IRaDecOffsets(Interface):
    """The module supports RA/Dec offsets, usually combined with :class:`~pyobs.interfaces.ITelescope` and
    :class:`~pyobs.interfaces.IRaDec`."""
    __module__ = 'pyobs.interfaces'

    def set_radec_offsets(self, dra: float, ddec: float, *args, **kwargs):
        """Move an RA/Dec offset.

        Args:
            dra: RA offset in degrees.
            ddec: Dec offset in degrees.

        Raises:
            ValueError: If offset could not be set.
        """
        raise NotImplementedError

    def get_radec_offsets(self, *args, **kwargs) -> Tuple[float, float]:
        """Get RA/Dec offset.

        Returns:
            Tuple with RA and Dec offsets.
        """
        raise NotImplementedError


__all__ = ['IRaDecOffsets']

from typing import Tuple

from .interface import Interface


class IRaDecOffsets(Interface):
    """The module supports RA/Dec offsets, usually combined with :class:`~pyobs.interfaces.ITelescope` and
    :class:`~pyobs.interfaces.IRaDec`."""
    __module__ = 'pyobs.interfaces'

    def set_radec_offsets(self, dra: float, ddec: float, *args, **kwargs):
        """Move an RA/Dec offset.

        Args:
            dra: RA offset in degrees.
            ddec: Dec offset in degrees.

        Raises:
            ValueError: If offset could not be set.
        """
        raise NotImplementedError

    def get_radec_offsets(self, *args, **kwargs) -> Tuple[float, float]:
        """Get RA/Dec offset.

        Returns:
            Tuple with RA and Dec offsets.
        """
        raise NotImplementedError


__all__ = ['IRaDecOffsets']
The module supports RA/Dec offsets, usually combined with :class:`~pyobs.interfaces.ITelescope` and     :class:`~pyobs.interfaces.IRaDec`. Move an RA/Dec offset.          Args:             dra: RA offset in degrees.             ddec: Dec offset in degrees.          Raises:             ValueError: If offset could not be set. Get RA/Dec offset.          Returns:             Tuple with RA and Dec offsets.