bnl.core.BoundaryHierarchy

class bnl.core.BoundaryHierarchy(bs, *, name=None)[source]

Bases: BoundaryContour

The structural output of the monotonic casting process.

Public Data Attributes:

bs

start

end

Inherited from BoundaryContour

bs

start

end

name

Inherited from TimeSpan

name

duration

Duration in seconds.

start

end

Public Methods:

to_ms()

Convert the BoundaryHierarchy to a MultiSegment.

Inherited from BoundaryContour

plot(**kwargs)

Plots the BoundaryContour on a Plotly figure.

clean([strategy])

Cleans up the boundary contour using a specified strategy.

level([strategy])

Converts the BoundaryContour to a BoundaryHierarchy by quantizing salience.


Parameters:
to_ms()[source]

Convert the BoundaryHierarchy to a MultiSegment.

The MultiSegment will have layers from coarsest (highest level) to finest (lowest level), with empty strings for all labels.

Returns:

The resulting MultiSegment object.

Return type:

MultiSegment