def finalise(self, cfg): log.debug("Finalising subset %s", self.subset_id) log.debug("models not done: %s", self.models_not_done) if self.models_not_done: return False # We might already have done everything if self.status == DONE: return True self.model_selection(cfg) # Do all the final cleanup if cfg.save_phylofiles: # Write out a summary of the subsets cfg.reporter.write_subset_summary(self) else: # Otherwise, clean up files generated by the programs as well if self.alignment_path: remove_runID_files(self.alignment_path) self.models_to_process = [] self.status = DONE cfg.progress.subset_done(self) return True
def finalise(self, cfg): if self.models_not_done: return False # We might already have done everything if self.status == DONE: return True # Do all the final cleanup cfg.reporter.write_subset_summary(self) self.save_results(cfg) self.model_selection(cfg) if not cfg.save_phylofiles: remove_runID_files(self.alignment_path) self.models_to_process = [] self.status = DONE cfg.progress.subset_done(self) return True