test: test of json output of a correlator with a gap added

This commit is contained in:
Fabian Joswig 2022-01-27 14:12:10 +00:00
parent 01c3d02394
commit 6c99e05e5b

View file

@ -101,8 +101,11 @@ def test_json_corr_io():
for fp in [0, 2]:
for bp in [0, 7]:
for corr_tag in [None, 'my_Corr_tag']:
for gap in [False, True]:
my_corr = pe.Corr(obs_list, padding=[fp, bp])
my_corr.tag = corr_tag
if gap:
my_corr.content[4] = None
pe.input.json.dump_to_json(my_corr, 'corr')
recover = pe.input.json.load_json('corr')
os.remove('corr.json.gz')