From 69a39c541c3ea461df320e0086342bf3abdb9934 Mon Sep 17 00:00:00 2001 From: Samuel Hinton Date: Wed, 18 Mar 2020 15:17:40 +1000 Subject: [PATCH] Adding more debug output in case Helen's issue happens again --- cfg.yml | 2 +- pippin/classifiers/classifier.py | 2 +- pippin/snana_sim.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cfg.yml b/cfg.yml index 741f7274..722af473 100644 --- a/cfg.yml +++ b/cfg.yml @@ -30,6 +30,6 @@ CosmoMC: OUTPUT: output_dir: $PIPPIN_OUTPUT - # output_dir = output +# output_dir: output ping_frequency: 30 max_ping_frequency: 300 diff --git a/pippin/classifiers/classifier.py b/pippin/classifiers/classifier.py index 6fc78abd..63aa6692 100644 --- a/pippin/classifiers/classifier.py +++ b/pippin/classifiers/classifier.py @@ -144,7 +144,7 @@ def get_num_ranseed(sim_task, lcfit_task): if sim_task is not None: return len(sim_task.output["sim_folders"]) if lcfit_task is not None: - return len(sim_task.output["fitres_dirs"]) + return len(lcfit_task.output["fitres_dirs"]) raise ValueError("Classifier dependency has no sim_task or lcfit_task?") tasks = [] diff --git a/pippin/snana_sim.py b/pippin/snana_sim.py index 21464293..10e4c1f5 100644 --- a/pippin/snana_sim.py +++ b/pippin/snana_sim.py @@ -155,6 +155,7 @@ def __init__(self, name, output_dir, genversion, config, global_config, combine= base = os.path.expandvars(f"{self.global_config['SNANA']['sim_dir']}/{self.genversion}") if ranseed_change: num_sims = int(ranseed_change.split()[0]) + self.logger.debug("Detected randseed change with {num_sims} sims, updating sim_folders") self.sim_folders = [base + f"-{i + 1:04d}" for i in range(num_sims)] else: self.sim_folders = [base]