PopPUNK icon indicating copy to clipboard operation
PopPUNK copied to clipboard

poppunk iterate: raise TypeError("multiplier must be an int or float")

Open luciagrami opened this issue 1 year ago • 1 comments

Hello, I am using poppunk 2.7.0 with pp-sketchlib v2.1.4.

I am having issues when running poppunk_iterate.py: poppunk_iterate.py --db PAdb --cutoff 0.2 --output PAit

Error:

Traceback (most recent call last): File "/atlas/apps/miniconda3/envs/pp_env/bin/poppunk_iterate.py", line 257, in tree.scale_edges(1 / max_pi) File "/atlas/apps/miniconda3/envs/pp_env/lib/python3.11/site-packages/treeswift/Tree.py", line 1169, in scale_edges raise TypeError("multiplier must be an int or float") TypeError: multiplier must be an int or float

Any suggestions? Thanks!

luciagrami avatar Aug 22 '24 22:08 luciagrami

I'm guessing max_pi is coming out wrong. Can you add print(max_pi) to above line 257 and rerun?

johnlees avatar Aug 23 '24 09:08 johnlees