Documenting assumption about validation relative to usage logging. RE:#651

This commit is contained in:
James Douglass 2021-09-23 09:14:34 -07:00
parent 22256cbbf4
commit 4a9400b724
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ def _calculate_args_bounding_box(args, args_spec):
# model to hang sometimes (possible race condition), so only
# get the bounding box of inputs that are known to be spatial.
# Also eliminate any string paths that are empty to prevent an
# exception.
# exception. By the time we've made it to this function, all paths
# should already have been validated so the path is either valid or
# blank.
spatial_info = None
if args_spec['args'][key]['type'] == 'raster' and value.strip() != '':
spatial_info = pygeoprocessing.get_raster_info(value)