Closed cr-xu closed 2 months ago
Hmm... I guess this is a general issue w.r.t. vectorised branch as the Marker
doesn't get broadcasted along with other elements. The transfer map is not properly determined because it doesn't have a length
attribute.
One easy fix would be to just assign length
as a basic feature in the Element
class and set it to 0.0.
What's your opinion @jank324
I think setting length to 0.0 makes sense. On a base Element
(and all that don't override length
this should probably also be a read-only property.
We might have to check then where exceptions have been made for lengthless elements, code may potentially be simplified.
Are you working on this or should I do it?
If you could do it, that would be great!
Currently, the
Segment
tracking will crash if it only contains.Since it groups skippable elements in
Segment
and callstrack
recursively, it further causes problem if there are only length-less elements between non-skippable elements.Reproducing the bug:
This will complain:
This happens only on the vectorised branch, and should be fixed before merging #116