PyPythia icon indicating copy to clipboard operation
PyPythia copied to clipboard

Fix logger timer bug

Open fdecarpentier opened this issue 1 month ago • 0 comments

Fix a bug of the logger timer causing this error for runs of more than an hour:

Traceback (most recent call last):
  File "/home/fdecarpentier/Documents/FrankenPhylo/FufaStein/.snakemake/conda/7ddc770da26d7b8f4436aadb4e950c55_/bin/pythia", line 10, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/fdecarpentier/Documents/FrankenPhylo/FufaStein/.snakemake/conda/7ddc770da26d7b8f4436aadb4e950c55_/lib/python3.13/site-packages/pypythia/main.py", line 161, in main
    f"Total runtime: {int(hours):02d}:{int(minutes):02d}:{seconds:02d} hours ({round(total_runtime)} seconds)."
                                                         ^^^^^^^^^^^^^
ValueError: Unknown format code 'd' for object of type 'float'

I'm no python programmer, but I believed it fixes the issue, I tested it on two large MSAs.

fdecarpentier avatar Nov 19 '25 03:11 fdecarpentier