From 8879e6b3829bb4730bae609d0c5a949ac69a5472 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Thu, 9 Dec 2021 09:44:50 +0000 Subject: [PATCH] refactor: check in Obs.__init__ withe means!=None removed which could never be reached. --- pyerrors/obs.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index c24da74a..168f7292 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -125,8 +125,6 @@ class Obs: for name, sample, mean in sorted(zip(names, samples, means)): self.shape[name] = len(self.idl[name]) self.N += self.shape[name] - if len(sample) != self.shape[name]: - raise Exception('Incompatible samples and idx for %s: %d vs. %d' % (name, len(sample), self.shape[name])) self.r_values[name] = mean self.deltas[name] = sample else: