MultiTag intersection object
It came up in a discussion that intersecting MultiTags might be a useful feature. This could be a method that takes a list of MultiTags (or their names) and returns a new type (MultiTagView? similar to how a DataView is a sliced view of a DataArray) that has positions and extents that represent the intersection of the provided MTs. Similarly, the references of this MultiTagView would be the DataArrays that are referred to by all provided MultiTags.
Would that be a transient object or something that you would want to store in the file?
I guess this information should be stored in the file. much like a group with some more info.
I was thinking transient, which is why I mentioned the DataView.
Since this issue is still open I wanted to say that a MultiTag intersection object would be really useful for me. For example if I wanted to get all spikes (first MultiTag) that occur around a specific behavioural event (second MultiTag) in trials of a certain condition (third MultiTag).
There's an open Pull Request for this in the nixworks library: https://github.com/G-Node/nixworks/pull/19
It needs a bit more testing and a deeper review, which is why it's been open for so long.
Thanks for the link, I had only checked this repo and couldn't find a branch/PR for it.