so 

n_samples, n_features = X.shape
if self.resolution is None or self.resolution >= n_samples: