mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
9d6bab35d2
3 changed files with 25 additions and 2 deletions
|
@ -1015,3 +1015,15 @@ def test_hash():
|
|||
assert hash(i_obs) != hash((1 + 1e-7) * i_obs)
|
||||
assert hash(obs) != hash(o1)
|
||||
assert hash(o1) != hash(o2)
|
||||
|
||||
def test_gm_alias():
|
||||
samples = np.random.rand(500)
|
||||
|
||||
tt1 = pe.Obs([samples], ["ens"])
|
||||
tt1.gamma_method()
|
||||
|
||||
tt2 = pe.Obs([samples], ["ens"])
|
||||
tt2.gm()
|
||||
|
||||
assert np.isclose(tt1.dvalue, tt2.dvalue)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue