def transform(self, X, y=None, copy=None):
        copy = copy if copy is not None else self.copy
        n_f, dim = X.shape
        if copy:
            X = X.copy()

        mag = 3 * (2 * self.blank_thresh / dim)

        blank_idx = self.blank_thresh < np.sum(X, axis=1)
        X[blank_idx, :] = mag * np.random.rand(blank_idx.sum(), dim)
        return X
dataset/ETHPy150Open dougalsutherland/py-sdm/sdm/proc_image_features.py/FillBlanks.transform/swapped operands of `<`