Skip to content

request: nwbfile.create_electrode_table_region should take type range #350

Open
@bendichter

Description

@bendichter

Low priority, but this would be a nice little usability improvement.

When I try

all_table_region = nwbfile.create_electrode_table_region(
    range(electrode_counter), 'all electrodes')

I get

TypeError: incorrect type for 'region' (got 'range', expected 'slice, list, tuple or RegionReference')

I can fix this by wrapping range in list, but it would be nice if pynwb handled this kind of thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: enhancementimprovements of code or code behaviorpriority: lowalternative solution already working and/or relevant to only specific user(s)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions