Source code for mirar.pipelines.wasp.wasp_pipeline

"""
Module to run the WASP data reduction pipeline
"""

import logging
from pathlib import Path

from mirar.data import Image
from mirar.pipelines.base_pipeline import Pipeline
from mirar.pipelines.wasp.blocks import build_log, load_raw, reduce, subtract
from mirar.pipelines.wasp.config import PIPELINE_NAME, wasp_cal_requirements
from mirar.pipelines.wasp.load_wasp_image import load_raw_wasp_image

logger = logging.getLogger(__name__)


[docs] class WASPPipeline(Pipeline): """ Class to run WASP data reduction pipeline """ name = PIPELINE_NAME non_linear_level = 30000 # no idea, for pylint all_pipeline_configurations = { "default": load_raw + reduce + subtract, "log": load_raw + build_log, "reduce": load_raw + reduce, } defalut_cal_requirements = wasp_cal_requirements
[docs] @staticmethod def download_raw_images_for_night(night: str | int): """ Download raw images for a night """ raise NotImplementedError
@staticmethod def _load_raw_image(path: str | Path) -> Image | list[Image]: return load_raw_wasp_image(path)