You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When following the user guide, TESTCASE=<testcase_name> docker-compose up will throw the following error: ImportError: cannot import name 'trapz' from 'scipy.integrate'.
I assume a deprecated version of trapezoid is used. Changing the line from from scipy.integrate import trapz to scipy.integrate import trapezoid as trapz in the file /kpis/kpi_calculator.py worked for me. Maybe using numpy.trapz would also work (as done in some other files).
The text was updated successfully, but these errors were encountered:
Thanks @Rapi1234 for reporting and suggesting fixes. A patch has been merged to master in this PR to specify the version of scipy: #659. But your suggestion is good for when we update dependency versions.
When following the user guide,
TESTCASE=<testcase_name> docker-compose up
will throw the following error:ImportError: cannot import name 'trapz' from 'scipy.integrate'
.I assume a deprecated version of trapezoid is used. Changing the line from
from scipy.integrate import trapz
toscipy.integrate import trapezoid as trapz
in the file /kpis/kpi_calculator.py worked for me. Maybe using numpy.trapz would also work (as done in some other files).The text was updated successfully, but these errors were encountered: