def __init__(self, eta: Optional[Time] = None, **kwargs: Any): """Initializes a new good weather event. Args: eta: Predicted ETA for when the telescope will be fully operational """ Event.__init__(self) self.data: DataType = {"eta": eta.isot if eta is not None else None}
def __init__(self, filename: str, **kwargs: Any): """Initializes new NewSpectrumEvent. Args: filename: Name of new image file. """ Event.__init__(self) self.data: DataType = {"filename": filename}
def __init__(self, name: str, id: Any, **kwargs: Any): """Initializes a new task failed event. Args: name: Name of task that just finished id: Unique identifier for task """ Event.__init__(self) self.data: DataType = {"name": name, "id": id}
def __init__(self, name: str, id: Any, eta: Optional[Time] = None, **kwargs: Any): """Initializes a new task started event. Args: name: Name of task that just started id: Unique identifier for task eta: Predicted ETA for when the task will finish """ Event.__init__(self) self.data: DataType = {"name": name, "id": id, "eta": None if eta is None else eta.isot}
def __init__(self, time: str, level: str, filename: str, function: str, line: int, message: str, **kwargs: Any): Event.__init__(self) self.data: DataType = { "time": time, "level": level, "filename": filename, "function": function, "line": line, "message": message, }
def __init__(self, status: MotionStatus, interfaces: Optional[Dict[str, MotionStatus]] = None, **kwargs: Any): Event.__init__(self) self.data: DataType = { "status": status.value, "interfaces": {k: v.value for k, v in interfaces.items()} if interfaces is not None else {}, }
def __init__(self, filename: str, image_type: Optional[ImageType] = None, raw: Optional[str] = None, **kwargs: Any): """Initializes new NewImageEvent. Args: filename: Name of new image file. image_type: Type of image. raw: Only for reduced images, references raw frame. """ Event.__init__(self) self.data: DataType = { "filename": filename, "image_type": image_type.value if image_type is not None else None, "raw": raw, }
def __init__(self, current: ExposureStatus, last: Optional[ExposureStatus] = None, **kwargs: Any): Event.__init__(self) self.data: DataType = { "last": last.value if last is not None else None, "current": current.value, }