When testing IDTxl according to the instructions by running python demos/demo_bivariate_mi.py after initially installing it via Conda, I encountered an error in the file idtxl/stats.py. Specifically, line 1535 raised an error:
if np.math.factorial(data.n_replications) > n_perm:
The error message stated that np.math.factorial does not exist.
To resolve this, I modified the code by importing Python’s built-in math module and replacing np.math.factorial with math.factorial. After this change, the code executed successfully.
Hope this makes sense.
When testing IDTxl according to the instructions by running
python demos/demo_bivariate_mi.pyafter initially installing it via Conda, I encountered an error in the fileidtxl/stats.py. Specifically, line 1535 raised an error:if np.math.factorial(data.n_replications) > n_perm:The error message stated that
np.math.factorialdoes not exist.To resolve this, I modified the code by importing Python’s built-in
mathmodule and replacingnp.math.factorialwithmath.factorial. After this change, the code executed successfully.Hope this makes sense.