Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luciagrami opened this issue Aug 22, 2024 · 1 comment
Open

Comments

@luciagrami
Copy link

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!

@johnlees
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants