Commit c11fae8b authored by Sylvain Herlédan's avatar Sylvain Herlédan

Add *temporary* workaround for bug wherein it is not possible to compute the...

Add *temporary* workaround for bug wherein it is not possible to compute the data_shape from the source file.

Note: the workaround simply skips these source files so that it does not
interrupt processing loops but it will be necessary to analyse and fix the
actual problem in the future.
parent 795f71ac
......@@ -10,7 +10,7 @@ import felyx_work.miniprod.shape
from felyx_work.utils.configuration import get_felyx_config
from felyx_work.felyx_server_interface import felyx_server_data
LOGGER = logging.getLogger(__name__)
logger = logging.getLogger(__name__)
TIME_FMT = '%Y-%m-%d %H:%M:%S'
......@@ -77,7 +77,7 @@ def dynamic_sites(source_file, site_collections, allowed_sites=None):
file_start_time = start_time.strftime(TIME_FMT)
_msg = 'find_dynamic_matches time window: [ {} ({}), {} ({}) ]'
LOGGER.debug(_msg.format(file_start_time, start_time, file_end_time,
logger.debug(_msg.format(file_start_time, start_time, file_end_time,
for group in site_collections.keys():
......@@ -146,6 +146,12 @@ def dynamic_sites(source_file, site_collections, allowed_sites=None):
if boundary_shape is None:
boundary_shape = source_file.data_shape
if boundary_shape is None:
logger.warning('Cannot compute boundary shape')
logger.warning('Source file data shape is {}'.format(source_file.data_shape))
logger.warning('Computed lon and lat boundaries: {} {}'.format(lon_boundary, lat_boundary))
if (boundary_shape.intersects(shape)):
result[site] = shape
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