Skip to content

Commit

Permalink
Clarify execution message
Browse files Browse the repository at this point in the history
  • Loading branch information
aghozlane committed Jun 24, 2024
1 parent 6bcda32 commit 7bbdc87
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions meteor/phylogeny.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,13 @@ def execute(self) -> None:
# mycluster.write(
# tree_file.with_suffix(".tree"),
# )
tree_files.append(tree_file)
logging.info("Completed MSP tree %d/%d", idx, msp_count)
if tree_file.exists():
tree_files.append(tree_file)
logging.info("Completed MSP tree %d/%d", idx, msp_count)
else:
logging.info(
"No tree file generated for MSP %s, skipping", msp_file.name
)
logging.info("Completed phylogeny in %f seconds", perf_counter() - start)
config = self.set_tree_config(raxml_ng_version, tree_files)
self.save_config(config, self.meteor.tree_dir / "census_stage_4.json")

0 comments on commit 7bbdc87

Please sign in to comment.