Skip to content

Commit

Permalink
Warn if no CreateCov tasks match mask
Browse files Browse the repository at this point in the history
  • Loading branch information
OmegaLambda1998 committed May 12, 2024
1 parent f1debcf commit 0375532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pippin/cosmofitters/wfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ def _get_wfit_dir(base_output_dir, stage_number, name):
mask = config.get("MASK", "")

ctasks = [ctask for ctask in create_cov_tasks if mask in ctask.name]
if len(ctasks) == 0:
Task.fail_config(f"WFit task {name} has no create_cov task to run on!")

t = WFit(name, _get_wfit_dir(base_output_dir, stage_number, name), ctasks, config, options, global_config)
Task.logger.info(f"Creating WFit task {name} {t.num_jobs} jobs")
tasks.append(t)

if len(create_cov_tasks) == 0:
Task.fail_config(f"WFit task {name} has no create_cov task to run on!")
return tasks

0 comments on commit 0375532

Please sign in to comment.