From 0339912fae1b1c494c0c74b7dd415fb21815510e Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Mon, 27 Sep 2021 15:24:13 +0100 Subject: [PATCH] autograd numpy removed from correlators where not necessary --- pyerrors/correlators.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyerrors/correlators.py b/pyerrors/correlators.py index cfdc81d0..11b83787 100644 --- a/pyerrors/correlators.py +++ b/pyerrors/correlators.py @@ -1,4 +1,5 @@ -import autograd.numpy as np +import numpy as np +import autograd.numpy as anp from .pyerrors import * from .fits import standard_fit from matplotlib import pyplot as plt @@ -222,7 +223,7 @@ class Corr: return np.log(Corr(newcontent, padding_back=1)) - else: # This is usually not very stable. + else: # This is usually not very stable. newcontent = [] for t in range(1, self.T - 1): if (self.content[t] is None) or (self.content[t + 1] is None)or (self.content[t - 1] is None):