Roofs (pyobs.modules.roof)
Modules for roofs. TODO: write doc
BaseDome
- class BaseDome(**kwargs: Any)
-
Base class for domes.
Initialize a new base dome.
- async get_fits_header_before(namespaces: list[str] | None = None, **kwargs: Any) dict[str, FitsHeaderEntry][source]
Returns FITS header for the current status of this module.
- Parameters:
namespaces – If given, only return FITS headers for the given namespaces.
- Returns:
Dictionary containing FITS headers.
BaseRoof
- class BaseRoof(**kwargs: Any)
Bases:
WeatherAwareMixin,MotionStatusMixin,IRoof,IFitsHeaderBefore,ModuleBase class for roofs.
Initialize a new base roof.
- async get_fits_header_before(namespaces: list[str] | None = None, **kwargs: Any) dict[str, FitsHeaderEntry][source]
Returns FITS header for the current status of this module.
- Parameters:
namespaces – If given, only return FITS headers for the given namespaces.
- Returns:
Dictionary containing FITS headers.
DummyRoof
- class DummyRoof(**kwargs: Any)
-
A dummy camera for testing.
Creates a new dummy root.
- async init(**kwargs: Any) None[source]
Open the roof.
- Raises:
InitError – If the roof could not be initialized (e.g. another motion is in progress).
- async park(**kwargs: Any) None[source]
Close the roof.
- Raises:
ParkError – If the roof could not be parked (e.g. another motion is in progress).
- async stop_motion(device: str | None = None, **kwargs: Any) None[source]
Stop the motion.
- Parameters:
device – Name of device to stop, or None for all.
- Raises:
DeviceBusyError – If current motion could not be aborted.