Skip to content

Commit e5b061d

Browse files
committed
Add support util fixes from Aronne Merrelli
1 parent 1cd97f2 commit e5b061d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

support/utils/add_spliced_retrieval_info.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ def copy_attrs(in_ds, out_ds):
9090
else:
9191
snd_idx = where_id[0][0]
9292

93-
if has_frames and int(l1b_sounding_ids[frame_idx, snd_idx]) != int(ret_id):
94-
raise Exception("Found L1B sounding id: %d which is not the same as retrieval sounding id used to search: %d at frame index: %d" % (l1b_sounding_ids[frame_idx, snd_idx], ret_id, frame_idx))
93+
if has_frames:
94+
if int(l1b_sounding_ids[frame_idx, snd_idx]) != int(ret_id):
95+
raise Exception("Found L1B sounding id: %d which is not the same as retrieval sounding id used to search: %d at frame index: %d" % (l1b_sounding_ids[frame_idx, snd_idx], ret_id, frame_idx))
9596
elif int(l1b_sounding_ids[snd_idx]) != int(ret_id):
9697
raise Exception("Found L1B sounding id: %d which is not the same as retrieval sounding id used to search: %d at sounding index: %d" % (l1b_sounding_ids[snd_idx], ret_id, snd_idx))
9798

support/utils/splice_product_files.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def write(self, string):
9595
else:
9696
self.fd.write(string)
9797

98+
def flush(self):
99+
self.fd.flush()
100+
98101
class DatasetInformation(object):
99102

100103
def __init__(self, dataset_name, rename_mapping=False):

0 commit comments

Comments
 (0)