Skip to content

Possible error in idtxl/stats.py #118

@WenhaoXuPhys

Description

@WenhaoXuPhys

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions