Removed redundant test in prune

This commit is contained in:
Simon Kuberski 2022-04-29 16:03:19 +02:00
parent b8e5f9dfd4
commit 0ec6f14b24

View file

@ -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: