Events (pyobs.events)
TODO: write doc
BadWeatherEvent
Event
ExposureStatusChangedEvent
- class ExposureStatusChangedEvent(current: ExposureStatus, last: ExposureStatus | None = None, **kwargs: Any)
Event to be sent, when the exposure status of a device changes.
FilterChangedEvent
FocusFoundEvent
GoodWeatherEvent
LogEvent
ModeChangedEvent
ModuleClosedEvent
ModuleOpenedEvent
MotionStatusChangedEvent
- class MotionStatusChangedEvent(status: MotionStatus, interfaces: dict[str, MotionStatus] | None = None, **kwargs: Any)
Event to be sent when the motion status of a device has changed.
MoveAltAzEvent
MoveEvent
MoveRaDecEvent
NewImageEvent
- class NewImageEvent(filename: str, image_type: ImageType | None = None, raw: str | None = None, **kwargs: Any)
Event to be sent on a new image.
Initializes new NewImageEvent.
- Parameters:
filename – Name of new image file.
image_type – Type of image.
raw – Only for reduced images, references raw frame.
NewSpectrumEvent
OffsetsAltAzEvent
OffsetsEvent
OffsetsRaDecEvent
RoofClosingEvent
RoofOpenedEvent
TaskFailedEvent
- class TaskFailedEvent(name: str, id: Any, obsnum: str | None = None, **kwargs: Any)
Event to be sent when a task has failed.
Initializes a new task failed event.
- Parameters:
name – Name of task that just failed
id – Unique identifier for task
obsnum – Per-night observation number of the run that just failed, e.g. “20260810-001”
TaskFinishedEvent
- class TaskFinishedEvent(name: str, id: Any, obsnum: str | None = None, **kwargs: Any)
Event to be sent when a task has finished.
Initializes a new task finished event.
- Parameters:
name – Name of task that just finished
id – Unique identifier for task
obsnum – Per-night observation number of the run that just finished, e.g. “20260810-001”
TaskStartedEvent
- class TaskStartedEvent(name: str, id: Any, eta: Time | None = None, obsnum: str | None = None, **kwargs: Any)
Event to be sent when a task has started.
Initializes a new task started event.
- Parameters:
name – Name of task that just started
id – Unique identifier for task
eta – Predicted ETA for when the task will finish
obsnum – Per-night observation number assigned to this run, e.g. “20260810-001”