Skip to content

Commit

Permalink
fix the pathlib import
Browse files Browse the repository at this point in the history
  • Loading branch information
LaraFuhrmann committed Nov 28, 2024
1 parent bc535b9 commit 2cd7636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion viloca/b2w.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def build_windows(alignment_file: str, tiling_strategy: TilingStrategy,
)
all_processes.append(p)
else:
logging.info(f'[file already exits] Use window files generated on {time.ctime(pathlib.Path(f"coverage_{idx}.txt").stat().st_mtime)}')
logging.info(f'[file already exits] Use window files generated on {time.ctime(Path(f"coverage_{idx}.txt").stat().st_mtime)}')

for p in all_processes:
p.start()
Expand Down
4 changes: 2 additions & 2 deletions viloca/shotgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def win_to_run(alpha_w, seed, inference_type, n_max_haplotypes, n_mfa_starts, un
if not (reuse_files and os.path.isfile(output_name)):
rn_list.append((winFile, j, alpha_w, seed, inference_type, n_max_haplotypes, n_mfa_starts, unique_modus, inference_convergence_threshold, record_history))
else:
logging.info(f'[file already exits] Use {output_name} generated on {time.ctime(pathlib.Path(output_name).stat().st_mtime)}')
logging.info(f'[file already exits] Use {output_name} generated on {time.ctime(Path(output_name).stat().st_mtime)}')


del end
Expand Down Expand Up @@ -489,7 +489,7 @@ def main(args):
logging.debug(e)
sys.exit('b2w run not successful')
else:
logging.info(f'[file already exits] Use coverage.txt generated on {time.ctime(pathlib.Path("coverage.txt").stat().st_mtime)}')
logging.info(f'[file already exits] Use coverage.txt generated on {time.ctime(Path("coverage.txt").stat().st_mtime)}')

aligned_reads = parse_aligned_reads('reads.fas')
if len(aligned_reads) == 0:
Expand Down

0 comments on commit 2cd7636

Please sign in to comment.