Skip to content

Commit

Permalink
Adding more debug output in case Helen's issue happens again
Browse files Browse the repository at this point in the history
  • Loading branch information
Samreay committed Mar 18, 2020
1 parent 7e4c108 commit 69a39c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ CosmoMC:

OUTPUT:
output_dir: $PIPPIN_OUTPUT
# output_dir = output
# output_dir: output
ping_frequency: 30
max_ping_frequency: 300
2 changes: 1 addition & 1 deletion pippin/classifiers/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
1 change: 1 addition & 0 deletions pippin/snana_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 69a39c5

Please sign in to comment.