validate_progress_level

function of dascore.utils.progress source

validate_progress_level(
    progress ,
)

Return a supported progress level, or the caller’s own bar.

False is the obvious way to ask for no bar, so it is accepted and returned as None. Callers must use the returned value: anything else falls through to the standard bar, so a False passed on unchanged would turn one on rather than off. True is not accepted, having no one obvious meaning where there are two bars to choose between.