diff --git a/dataset/dataset.py b/dataset/dataset.py index d64c917759b6c963c6d15139a7f86d1eae02c85a..baa79c33e76a5a364d754efb6321806dac01a8b3 100644 --- a/dataset/dataset.py +++ b/dataset/dataset.py @@ -11,7 +11,7 @@ class Threshold_noise: self.threshold = threshold def __call__(self, x): - return torch.where((x <= self.threshold), torch.tensor(0.)) + return torch.where((x <= self.threshold), 0.) class Log_normalisation: """Log normalisation of intensities"""