Skip to content

Making possible to edit first_samp after using crop #13278

Open
@lilly-sanchezz

Description

@lilly-sanchezz

Describe the new feature or enhancement

Hi!

I want to suggest the possibility to change the first_samp attribute when using crop on a raw object.
I understand that the reason why this attribute does not start at 0 is to mantain a record of the time frame of the original signal where the segment was extracted, but there are cases where you owuld like to treat the cropped segments as independient signals.
It has been suggested to usea RawArrays as an alternative to reset first_samp values, but in my point of view, implementing the option on the crop function makes it easier and faster.

Describe your proposed implementation

Just that, the ability to reset the value of the attribute to treat cropped signals independient raw objects.

Describe possible alternatives

Another alternative is to include information on the documentation about the way crop treats the first _samp on the segments and alternatives to reset it, because this is not noted, and by looking at different entries both on the forum and github we can tell is not that obvious.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions