-
Notifications
You must be signed in to change notification settings - Fork 17
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
ZeroDivisionError: float division by zero #4
Comments
Hi @liufeibio , |
Thanks for your help with this. It solved this problem. But I encountered another problem: |
Did you resolve it? I come across the same problem now. |
No, I haven't, it is still there. |
Hi @liufeibio and @Hua-CM,
|
Hi, @LKremer
I am trying to use CAFE_fig to visualize the results from CAFE, but I encountered some problems.
Here is my running: python3 ./CAFE_fig/CAFE_fig.py cafe_result.cafe -c asc=vL, da -pb 0.05 -pf 0.05 --dump test/ -g .pdf --count_all_expansions
And these are output:
Traceback (most recent call last):
File "./CAFE_fig/CAFE_fig.py", line 517, in
main(**vars(args))
File "./CAFE_fig/CAFE_fig.py", line 458, in main
c = CAFE_fig(report_cafe, families, clades, pb, pf, dump, gfx_output_format, count_all_expansions)
File "./CAFE_fig/CAFE_fig.py", line 86, in init
self.parse_tree()
File "./CAFE_fig/CAFE_fig.py", line 136, in parse_tree
self.parse_lambdas(line)
File "./CAFE_fig/CAFE_fig.py", line 209, in parse_lambdas
self.lambda_colors[i] = to_rgb(math.log(lambda_), min_l, max_l)
File "./CAFE_fig/CAFE_fig.py", line 62, in to_rgb
v = (v_abs - min_v) / (max_v - min_v) # scaled to a value between 0 and 1
ZeroDivisionError: float division by zero
Could you help with this? I appreciate your help. Thanks!
Fei
The text was updated successfully, but these errors were encountered: