Skip to content

Getting "Buffer dtype mismatch, expected 'long' but got 'long long'" when doing significance analysis #39

Description

@julianamengual

Hello,

I have been applying dPCA in matlab and now I am trying to do the same in Python (in order to learn). When I am trying to do the significant analysis I gt the following error:

Compute score of shuffled data: 0 / 100 Traceback (most recent call last):

File "", line 1, in
significance_masks = dpca.significance_analysis(Matr_CondT, firingRates, n_shuffles=100, n_splits=10, n_consecutive=10)

File "C:\Users\amengual\anaconda3\lib\site-packages\dPCA\dPCA.py", line 875, in significance_analysis
self.shuffle_labels(trialX)

File "C:\Users\amengual\anaconda3\lib\site-packages\dPCA\dPCA.py", line 735, in shuffle_labels
nan_shuffle.shuffle2D(trialX)

File "dPCA\nan_shuffle.pyx", line 9, in dPCA.nan_shuffle.shuffle2D

ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

I am sorry in advance, I am still learning the language, and any help on this would be really appreciated.

Thanks a lot in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions