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

About 'float division by zero' error #2

Open
1cyCok3 opened this issue Dec 14, 2021 · 0 comments
Open

About 'float division by zero' error #2

1cyCok3 opened this issue Dec 14, 2021 · 0 comments

Comments

@1cyCok3
Copy link

1cyCok3 commented Dec 14, 2021

Hi,
I tried to run 'run.py' in /demo, then i got 'ZeroDivisionError: float division by zero'. I printed the log and found that it was all about the downlink_trace[1] not having enough data. How can i resolve it?

log below:

i = 1 time = 1401
i = 2 time = 1401
i = 3 time = 1401
i = 4 time = 1401
i = 0 time = 1601
i = 1 time = 1601
Traceback (most recent call last):
File "run.py", line 227, in
change.append(algrithm.estimate(traceA)-algrithm.estimate(traceB))
File "/.../Multiparty_Live_Streaming-master/demo/algrithm.py", line 86, in estimate
harmonic_mean = float(length)/sum
ZeroDivisionError: float division by zero

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

1 participant