-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnakefile
More file actions
33 lines (27 loc) · 1017 Bytes
/
Copy pathSnakefile
File metadata and controls
33 lines (27 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""Reproducible entry points for PopCosmos-like DSPS runs."""
configfile: "configs/popcosmos_binned.yaml"
RUN_DIR = config.get("run_dir", "outputs/runs/popcosmos_fit_snakemake")
LIMIT = int(config.get("limit", 100))
BATCH_SIZE = int(config.get("batch_size", 64))
SED_SAMPLES = int(config.get("sed_samples", 8))
SCIENCE_CONFIG = config.get("science_config", "configs/popcosmos_binned.yaml")
rule all:
input:
f"{RUN_DIR}/batch_fit_results.parquet",
f"{RUN_DIR}/batch_fit_photometry_comparison.parquet",
f"{RUN_DIR}/normalized_config.json",
rule science_fit:
output:
fits=f"{RUN_DIR}/batch_fit_results.parquet",
phot=f"{RUN_DIR}/batch_fit_photometry_comparison.parquet",
config=f"{RUN_DIR}/normalized_config.json",
shell:
"""
euclid-dsps \
--config {SCIENCE_CONFIG} \
fit \
--limit {LIMIT} \
--batch-size {BATCH_SIZE} \
--sed-samples {SED_SAMPLES} \
--out {RUN_DIR}
"""