Skip to content

resample() converts dtype to int16 even when dtype=‘uint16’ is specified #3969

Open
@carmengasco

Description

@carmengasco

Hello!

When I load a binary file using read_binary, I specify dtype='uint16'. As expected, the trace I get is indeed of type uint16.

However, the issue arises when I use .resample(recording, 2500, dtype='uint16'). Even though I explicitly set the output dtype, the resulting data is automatically converted to int16.

Is there a way to preserve the original uint16 dtype during resampling?

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    preprocessingRelated to preprocessing module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions