Closed AlexTate closed 2 years ago
Note: the commit history and changed files list is excessive in this PR because branch issue-148 was derived from issue-134, which is waiting to be merged with master. These lists are determined by comparing to the master branch.
After the PR for issue-134 is merged, I'll toggle the branch comparison to clean up the lists for this PR
Toggled, PR is good to go
Closes #148
Additionally, in some cases subintervals of discontinuous features can wind up being defined adjacent to each other after processing. This happens when the adjacent intervals are defined under unique feature IDs but share the same root parent; this results in two side-by-side intervals with the root parent's feature ID.
StepVector.get_steps(merge_values=True)
will remedy this by merging the adjacent intervals but there are two issues with this:interval -> overlapping features
lookup. It isn't particularly expensive but it's unnecessary work.Now, these adjacent subintervals are merged just once before storing them in the StepVector so that on-the-fly merging is no longer necessary.