Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sedmv2 realtime #585

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions mirar/pipelines/sedmv2/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,17 @@
]

imsub = subtract # + export_diff_to_db + extract_candidates


detrend_only = [
MaskPixelsFromPath(mask_path=sedmv2_mask_path),
BiasCalibrator(),
ImageSelector((OBSCLASS_KEY, ["flat", "science"])),
ImageBatcher(
split_key="filterid"
), # maybe change back to filter after revising load func
FlatCalibrator(),
ImageBatcher(split_key=BASE_NAME_KEY),
ImageSelector((OBSCLASS_KEY, ["science"])), # pylint: disable=duplicate-code
ImageSaver(output_dir_name="detrend", write_mask=True),
]
2 changes: 2 additions & 0 deletions mirar/pipelines/sedmv2/sedmv2_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from mirar.io import open_mef_image
from mirar.pipelines.base_pipeline import Pipeline
from mirar.pipelines.sedmv2.blocks import (
detrend_only,
image_photometry,
load_raw,
process_stellar,
Expand All @@ -36,6 +37,7 @@ class SEDMv2Pipeline(Pipeline):
"default": load_raw + process_stellar,
"default_stellar": load_raw + process_stellar + image_photometry,
"default_transient": load_raw + process_transient, # +imsub,
"realtime": load_raw + detrend_only, # +much more...
}

@staticmethod
Expand Down
Loading