(cls, size_data)
Fallback imputation for sizes.

        Set the size to two pixels smaller than the minimal size

        Returns:
            (bool): True if there was any missing data
Fallback imputation for sizes.
Fallback imputation for sizes .
def default_impute_sizes(cls, size_data):
        """
        Fallback imputation for sizes.

        Set the size to two pixels smaller than the minimal size

        Returns:
            (bool): True if there was any missing data
        """
        nans = np.isnan(size_data)
        if np.any(nans):
            size_data[nans] = cls.MinShapeSize - 2
            return True
        else:
            return False
def default_impute_sizes ( cls , size_data ) : nans = np . isnan ( size_data ) if np . any ( nans ) : size_data [ nans ] = cls . MinShapeSize - 2 return True else : return False