mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-29 16:29:27 +02:00
feat: guards added for functionality that breaks with numpy>=1.25 and
autograd==1.5.
This commit is contained in:
parent
f14042132f
commit
13ace62262
3 changed files with 31 additions and 20 deletions
|
@ -1,3 +1,4 @@
|
|||
from packaging import version
|
||||
import numpy as np
|
||||
import pyerrors as pe
|
||||
import pytest
|
||||
|
@ -5,10 +6,11 @@ import pytest
|
|||
np.random.seed(0)
|
||||
|
||||
|
||||
def test_mpm():
|
||||
corr_content = []
|
||||
for t in range(8):
|
||||
f = 0.8 * np.exp(-0.4 * t)
|
||||
corr_content.append(pe.pseudo_Obs(np.random.normal(f, 1e-2 * f), 1e-2 * f, 't'))
|
||||
if version.parse(np.__version__) < version.parse("1.25.0"):
|
||||
def test_mpm():
|
||||
corr_content = []
|
||||
for t in range(8):
|
||||
f = 0.8 * np.exp(-0.4 * t)
|
||||
corr_content.append(pe.pseudo_Obs(np.random.normal(f, 1e-2 * f), 1e-2 * f, 't'))
|
||||
|
||||
res = pe.mpm.matrix_pencil_method(corr_content)
|
||||
res = pe.mpm.matrix_pencil_method(corr_content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue