-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SimultaneousEvent: Add concatenation methods
Before this patch it was very difficult to concatenate two SimultaneousEvent along their time axis. It was only easily possible to extend a SimultaneousEvent with another SimultaneousEvent by adding more simultaneous layers via the '.extend' method. With this patch it becomes easy to extend each child of a SimultaneousEvent with the children of a similar second SimultaneousEvent. The new methods 'concatenate_by_index' and 'concatenate_by_tag' find pairs of events in the original and in new SimultaneousEvent according to their common tag or to their common index and concatenates the pairs. The concatenation is mostly safe to use, because it ensures that even slightly different SimultaneousEvent (e.g. one of them has more children than the other) still get concatenated in meaningful ways.
- Loading branch information
1 parent
ad282e0
commit cf678e2
Showing
3 changed files
with
217 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters