Repository: climate Updated Branches: refs/heads/master 434752cb5 -> 050d3ac44
CLIMATE-954 - Debug dataset_processor.subset - dataset_processor._are_bounds_contained_by_dataset is applied only to the cases whose boundary type is 'rectangular'. Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/c121f5d3 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/c121f5d3 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/c121f5d3 Branch: refs/heads/master Commit: c121f5d398c32e0ca1abf4d2aece3828255647f6 Parents: 434752c Author: huikyole <huiky...@argo.jpl.nasa.gov> Authored: Sun Jun 17 19:39:43 2018 -0700 Committer: huikyole <huiky...@argo.jpl.nasa.gov> Committed: Sun Jun 17 19:39:43 2018 -0700 ---------------------------------------------------------------------- ocw/dataset_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/c121f5d3/ocw/dataset_processor.py ---------------------------------------------------------------------- diff --git a/ocw/dataset_processor.py b/ocw/dataset_processor.py index 8f3f82a..d27dc63 100755 --- a/ocw/dataset_processor.py +++ b/ocw/dataset_processor.py @@ -379,7 +379,7 @@ def subset(target_dataset, subregion, subregion_name=None, extract=True, user_ma if not subregion_name: subregion_name = target_dataset.name - if hasattr(subregion, 'lat_min'): + if subregion.lat_min is not None: _are_bounds_contained_by_dataset(target_dataset, subregion) if target_dataset.lats.ndim == 2 and target_dataset.lons.ndim == 2: