Commit ea6bf250 authored by Daniel Scheffler's avatar Daniel Scheffler

SpatialIndexMediator.getFullSceneDataForDataset() now retries the query 10...

SpatialIndexMediator.getFullSceneDataForDataset() now retries the query 10 times in case of a struct.error (relates to issue #103).
Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 9f98c9a4
......@@ -321,6 +321,12 @@ class SpatialIndexMediator:
else:
raise TimeoutError('Spatial query timed out 10 times!')
except struct.error:
if i < self.retries - 1:
continue
else:
raise
return scenes
......
......@@ -216,13 +216,15 @@ class ProcessController(object):
if os.path.isfile(assumed_path_GMS_file):
GMS_file_dict = INP_R.GMSfile2dict(assumed_path_GMS_file)
target_LayerBandsAssignment = \
get_LayerBandsAssignment(GMS_identifier(
get_LayerBandsAssignment(
GMS_identifier(
image_type=dataset['image_type'],
satellite=dataset['satellite'],
sensor=dataset['sensor'],
subsystem=dataset['subsystem'] if path_logfile != path_logfile_merged_ss else '',
proc_level=ProcL, # must be respected because LBA changes after atm. Corr.
dataset_ID=dataset['dataset_ID']), nBands=(1 if dataset['sensormode'] == 'P' else None))
dataset_ID=dataset['dataset_ID']),
nBands=(1 if dataset['sensormode'] == 'P' else None))
# check if the LayerBandsAssignment of the written dataset on disk equals the
# desired LayerBandsAssignment
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment