mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
additional test for irregular Obs added
This commit is contained in:
parent
8ceee688ec
commit
5077dfaad2
1 changed files with 9 additions and 0 deletions
|
@ -280,6 +280,15 @@ def test_irregular_error_propagation():
|
|||
regular_obs = pe.Obs([np.random.rand(1000)], ['t'])
|
||||
irregular_obs = pe.Obs([np.random.rand(500)], ['t'], idl=[range(1, 1000, 2)])
|
||||
assert regular_obs == (regular_obs / irregular_obs) * irregular_obs
|
||||
assert regular_obs == (regular_obs + irregular_obs) - irregular_obs
|
||||
|
||||
irregular_obs = pe.Obs([np.random.rand(6)], ['t'], idl=[[4, 18, 27, 29, 57, 80]])
|
||||
assert regular_obs == (regular_obs / irregular_obs) * irregular_obs
|
||||
assert regular_obs == (regular_obs + irregular_obs) - irregular_obs
|
||||
|
||||
irregular_obs = pe.Obs([np.random.rand(500)], ['t'], idl=[list(range(1, 251)) + list(range(500, 1000, 2))])
|
||||
assert regular_obs == (regular_obs / irregular_obs) * irregular_obs
|
||||
assert regular_obs == (regular_obs + irregular_obs) - irregular_obs
|
||||
|
||||
|
||||
def test_gamma_method_irregular():
|
||||
|
|
Loading…
Add table
Reference in a new issue