mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
autograd numpy removed from correlators where not necessary
This commit is contained in:
parent
77c816d6a6
commit
0339912fae
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
import autograd.numpy as np
|
import numpy as np
|
||||||
|
import autograd.numpy as anp
|
||||||
from .pyerrors import *
|
from .pyerrors import *
|
||||||
from .fits import standard_fit
|
from .fits import standard_fit
|
||||||
from matplotlib import pyplot as plt
|
from matplotlib import pyplot as plt
|
||||||
|
@ -222,7 +223,7 @@ class Corr:
|
||||||
|
|
||||||
return np.log(Corr(newcontent, padding_back=1))
|
return np.log(Corr(newcontent, padding_back=1))
|
||||||
|
|
||||||
else: # This is usually not very stable.
|
else: # This is usually not very stable.
|
||||||
newcontent = []
|
newcontent = []
|
||||||
for t in range(1, self.T - 1):
|
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):
|
if (self.content[t] is None) or (self.content[t + 1] is None)or (self.content[t - 1] is None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue