From 0ec6f14b24ecb02fde6a3ae8ab49eae2857e8c17 Mon Sep 17 00:00:00 2001 From: Simon Kuberski Date: Fri, 29 Apr 2022 16:03:19 +0200 Subject: [PATCH] Removed redundant test in prune --- pyerrors/correlators.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyerrors/correlators.py b/pyerrors/correlators.py index 04305e91..8ccf0421 100644 --- a/pyerrors/correlators.py +++ b/pyerrors/correlators.py @@ -1142,8 +1142,6 @@ class Corr: raise Exception('Method cannot be applied to one-dimensional correlators.') if basematrix is None: basematrix = self - elif basematrix.N == 1: - raise Exception('basematrix has to be a correlation matrix but is a one dimensional correlator.') if Ntrunc >= basematrix.N: raise Exception('Cannot truncate using Ntrunc <= %d' % (basematrix.N)) if basematrix.N != self.N: