Skip to content

TypeError from ext.transform (numpy > 1.24.4) #494

@paul-reiners

Description

@paul-reiners

I am running this example. Here is the code:

import warnings
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")

from pliers.extractors import RMSExtractor
import os.path

# Create an instance of this extractor
ext = RMSExtractor()

data_dir_paranoia = '/home/miran045/reine097/Volumes/Engram/Data/Paranoia/'
paranoia_audio = os.path.join(data_dir_paranoia, 'stimuli', 'stimuli_story1_audio.wav')
# Extract features from the audio stimulus
rms_result = ext.transform(paranoia_audio)

I am getting this error on the last line:

TypeError: arrays to stack must be passed as a "sequence" type such as list or tuple.

I am running the source code from the main branch. Let me know if you have any other questions about my environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions