mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 12:03:42 +02:00
test: test of json output of a correlator with a gap added
This commit is contained in:
parent
01c3d02394
commit
6c99e05e5b
1 changed files with 14 additions and 11 deletions
|
@ -101,8 +101,11 @@ def test_json_corr_io():
|
||||||
for fp in [0, 2]:
|
for fp in [0, 2]:
|
||||||
for bp in [0, 7]:
|
for bp in [0, 7]:
|
||||||
for corr_tag in [None, 'my_Corr_tag']:
|
for corr_tag in [None, 'my_Corr_tag']:
|
||||||
|
for gap in [False, True]:
|
||||||
my_corr = pe.Corr(obs_list, padding=[fp, bp])
|
my_corr = pe.Corr(obs_list, padding=[fp, bp])
|
||||||
my_corr.tag = corr_tag
|
my_corr.tag = corr_tag
|
||||||
|
if gap:
|
||||||
|
my_corr.content[4] = None
|
||||||
pe.input.json.dump_to_json(my_corr, 'corr')
|
pe.input.json.dump_to_json(my_corr, 'corr')
|
||||||
recover = pe.input.json.load_json('corr')
|
recover = pe.input.json.load_json('corr')
|
||||||
os.remove('corr.json.gz')
|
os.remove('corr.json.gz')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue