test: mpm and corr dump test extended

This commit is contained in:
Fabian Joswig 2021-12-23 14:56:49 +01:00
parent 8d8fa82bbe
commit 6c7f1f06c9
2 changed files with 15 additions and 0 deletions

14
tests/mpm_test.py Normal file
View file

@ -0,0 +1,14 @@
import numpy as np
import pyerrors as pe
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'))
res = pe.mpm.matrix_pencil_method(corr_content)