Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

set_index for new coordinates #1

Open
mschrimpf opened this issue Mar 26, 2019 · 0 comments
Open

set_index for new coordinates #1

mschrimpf opened this issue Mar 26, 2019 · 0 comments

Comments

@mschrimpf
Copy link
Member

When new coordinates are added to an assembly, they are not automatically added to the index.
For instance: assembly['region'] = 'neuroid', ['IT'] * len(assembly['neuroid']) will not allow assembly.sel(region='IT') but rather fail with a non-indexed error.
To fix (borrowing from @fksato): assembly.set_index(neuroid='region', append=True).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant