Skip to content

Error cannot provide both bin centers and nb_bins, while only providing bin centers #67

Description

@zozo19999

Hi,
I'm trying to use ne.metrics.MutualInformation, I provide the function only bin centers and not number of bins, and I receive the error "Error cannot provide both bin centers and nb_bins".

If I only provide the nb_bins parameter I don't receive this error.
My assumption for the root cause for the problem is in the class MutualInformation, when defining the bin_centers it redifines the number of bins by using nb_bins = bin_centers.shape[0] (line 95).
And when it runs self.quanitize (line 315) it sees that both nb_bins and bins_centers are not None and I receive this error.
Can please someone help, Maybe the script needs to be fixed?
err

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