get_track_length

function of dascore.utils.progress source

get_track_length(
    sequence: Iterable ,
    length: int | None[int, None] ,
    min_length: int ,
)-> ‘int’

Return the total to report to the progress bar.

A length of 0 means no bar: either the sequence is too short to be worth one, or it is an iterable whose length cannot be known.