photutils/segmentation/core.py
def is_sequential(self):
        """
        Determine whether or not the non-zero labels in the segmenation
        image are sequential (with no missing values).
        """

        if (self.labels[-1] - self.labels[0] + 1) == self.nlabels:
            return True
        else:
            return False

        Determine whether or not the non-zero labels in the segmenation
        image are sequential (with no missing values).
        
Determine whether or not the non-zero labels in the segmenation
image are sequential (with no missing values).
Determine whether or not the non - zero labels in the segmenation image are sequential ( with no missing values ) .
def is_sequential(self):
        if (self.labels[-1] - self.labels[0] + 1) == self.nlabels:
            return True
        else:
            return False
def is_sequential ( self ) : if ( self . labels [ - 1 ] - self . labels [ 0 ] + 1 ) == self . nlabels : return True else : return False
Determine whether or not the non-zero labels in the segmenation
image are sequential (with no missing values).
Determine whether or not the non - zero labels in the segmenation image are sequential ( with no missing values ) .
"""
        Determine whether or not the non-zero labels in the segmenation
        image are sequential (with no missing values).
        """
self