Repository: climate Updated Branches: refs/heads/master a663e1562 -> bf0006034
CLIMATE-396 - Ensure RCMED parameters are cast properly - Cast RCMED dataset id and parameter id to integers before attempting to load a dataset. Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/900f264a Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/900f264a Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/900f264a Branch: refs/heads/master Commit: 900f264abc202f0235f7dee47155cb26d59315c9 Parents: a663e15 Author: Michael Joyce <[email protected]> Authored: Fri Apr 4 22:33:36 2014 -0700 Committer: Michael Joyce <[email protected]> Committed: Fri Apr 4 22:34:02 2014 -0700 ---------------------------------------------------------------------- ocw-ui/backend/processing.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/900f264a/ocw-ui/backend/processing.py ---------------------------------------------------------------------- diff --git a/ocw-ui/backend/processing.py b/ocw-ui/backend/processing.py index deed472..eafed34 100644 --- a/ocw-ui/backend/processing.py +++ b/ocw-ui/backend/processing.py @@ -365,14 +365,14 @@ def _load_rcmed_dataset_object(dataset_info, eval_bounds): :raises KeyError: If the required keys aren't present in the dataset_info or eval_bounds objects. ''' - dataset = rcmed.parameter_dataset(dataset_info['dataset_id'], - dataset_info['parameter_id'], - eval_bounds['lat_min'], - eval_bounds['lat_max'], - eval_bounds['lon_min'], - eval_bounds['lon_max'], - eval_bounds['start_time'], - eval_bounds['end_time']) + dataset = rcmed.parameter_dataset(int(dataset_info['dataset_id']), + int(dataset_info['parameter_id']), + eval_bounds['lat_min'], + eval_bounds['lat_max'], + eval_bounds['lon_min'], + eval_bounds['lon_max'], + eval_bounds['start_time'], + eval_bounds['end_time']) # If a name is passed for the dataset, use it. Otherwise, use the file name. if 'name'in dataset_info.keys():
