Skip to content

Document (or align) which clean_rawdata steps mutate their input #541

Closed

Description

@neuromechanist

Measured on eegprep 0.5.0 by comparing a hash of the data and the keys of etc before and after each call:

function behaviour
clean_drifts mutates its input in place (data and etc) and returns the same object
clean_flatlines returns the same object when nothing is removed, a new one otherwise
clean_channels, clean_channels_nolocs same as clean_flatlines
clean_windows deep-copies and leaves its input untouched
pop_eegfiltnew, pop_select copy

A caller that keeps the original around must know this.
Expected: state it in each docstring, ideally copy consistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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