Skip to content

Conversation

@JuliaSprenger
Copy link

This PR adds a reference conversion of ChannelIndex and Unit objects to View and Group objects.

The conversion allows the automatic update of neo structure based on the deprecated ChannelIndex and Unit objects by replacing them with ChannelView and Group objects.

The conversion preserved information and is done in-place.
Each ChannelIndex is represented as a Group. Linked Unit objects are represented as child Group (subgroup) objects. Linked data objects (neo.AnalogSignal, neo.IrregularlySampledSignal) are represented by a View object linking to the original data object. Attributes are as far as possible conserved by the conversion of objects. channel_ids, channel_names and coordinates are converted to array_annotations.

Furthermore this PR improves the generation of ChannelIndexes for neo unittest purposes and relaxes the dtype of the Viewx.index attribute from np.integer to any integer type to allow for easy conversion of the ChannelIndex.index attribute.

@apdavison apdavison merged commit 7ff456a into apdavison:view-group Oct 19, 2020
@JuliaSprenger JuliaSprenger deleted the view-group_converter branch April 3, 2023 13:59
apdavison pushed a commit that referenced this pull request May 6, 2024
Use pathlib for Intan PR and simplify data type for non header-attached formats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants