Skip to content

restrict_to_interval does not work for individual trials #112

@raeedcho

Description

@raeedcho

Trying to use restrict_to_interval on an individual trial (which is a Pandas Series, rather than a DataFrame) doesn't seem to work (many of the functions used by restrict_to_interval require a DataFrame input).

In fact, it seems that perhaps many functions would fail if given a single trial (e.g. get_time_varying_fields).

A possible solution might be to put in explicit checks in functions for single trial input instead of a DataFrame. I'm not sure if that would need to be done in every function that assumes a DataFrame, or if there's a more elegant solution available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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