I got this error in one of my simulations but couldn't grab the values from the traceback. I'll start logging the output and report back.
Traceback (most recent call last):
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/levy/code/voting/venv/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/levy/code/voting/backend/web.py", line 194, in check_simulation
"results": simulation.get_results_dict()
File "/home/levy/code/voting/backend/simulate.py", line 526, in get_results_dict
self.analysis()
File "/home/levy/code/voting/backend/simulate.py", line 505, in analysis
self.analyze_list(ruleset, measure, c, p)
File "/home/levy/code/voting/backend/simulate.py", line 280, in analyze_list
std = sqrt(var)
ValueError: math domain error
I got this error in one of my simulations but couldn't grab the values from the traceback. I'll start logging the output and report back.