missing

method of dascore.core.coords.BaseCoord source

missing(
    self ,
)-> ‘Missing’

The grid positions between the first and last sample with no sample.

Missing is relative to a declared step: labels [0, 2, 4] fill a step-2 grid and miss positions 1 and 3 of a step-1 grid. A coordinate without a step cannot say and raises (an unordered array never carries one); so does a segmented coordinate whose runs share a step but meet off its grid.

Examples

from dascore.core.coords import get_coord
coord = get_coord(data=[1, 3, 4, 10, 11, 12], step=1)
coord.missing().count
get_coord(start=0, stop=10, step=1).missing().complete
True