[ https://issues.apache.org/jira/browse/CLIMATE-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15312873#comment-15312873 ]
ASF GitHub Bot commented on CLIMATE-799: ---------------------------------------- GitHub user jarifibrahim opened a pull request: https://github.com/apache/climate/pull/346 CLIMATE-799 - TypeError in subset function - Fix TypeError in subset function You can merge this pull request into a Git repository by running: $ git pull https://github.com/jarifibrahim/climate CLIMATE-799 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/climate/pull/346.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #346 ---- commit 536a9f69a76b1181aa3d694b0e1d38149baad45c Author: Ibrahim <jarifibra...@gmail.com> Date: 2016-06-02T18:53:49Z CLIMATE-799 - TypeError in subset function - Fix TypeError in subset function ---- > TypeError in subset function > ---------------------------- > > Key: CLIMATE-799 > URL: https://issues.apache.org/jira/browse/CLIMATE-799 > Project: Apache Open Climate Workbench > Issue Type: Bug > Reporter: Ibrahim Jarif > Assignee: Ibrahim Jarif > Priority: Critical > > *Subset* function line 356 > {code} > 355 if target_dataset.lats.ndim ==2 and target_dataset.lons.ndim ==2: > --> 356 target_dataset = temporal_slice(subregion.start, > subregion.end, target_dataset) > 357 nt, ny, nx = target_dataset.values.shape > 358 y_index, x_index = np.where((target_dataset.lats >= > subregion.lat_max) | (target_dataset.lats <= subregion.lat_min) | > {code} > *temporal_slice* expects indices of the time in *target_dataset.times* array. > The actual datetime objects are being passed in this case. -- This message was sent by Atlassian JIRA (v6.3.4#6332)