bio_rtd.utils.vectors

true_start

bio_rtd.utils.vectors.true_start(boolean_vector)[source]

accepts array of booleans and returns index of first true

Return type

int

true_end

bio_rtd.utils.vectors.true_end(boolean_vector)[source]

accepts array of booleans and returns index AFTER last true

Return type

int

true_start_and_end

bio_rtd.utils.vectors.true_start_and_end(boolean_vector)[source]

accepts array of booleans and returns indexes of first and AFTER last true

Return type

(<class ‘int’>, <class ‘int’>)