Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C8043200B11 for ; Mon, 13 Jun 2016 21:05:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C6903160A3C; Mon, 13 Jun 2016 19:05:34 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 15D9B160A1A for ; Mon, 13 Jun 2016 21:05:33 +0200 (CEST) Received: (qmail 14725 invoked by uid 500); 13 Jun 2016 19:05:33 -0000 Mailing-List: contact dev-help@climate.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.apache.org Delivered-To: mailing list dev@climate.apache.org Received: (qmail 14713 invoked by uid 99); 13 Jun 2016 19:05:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2016 19:05:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D36171A0ACB for ; Mon, 13 Jun 2016 19:05:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.446 X-Spam-Level: X-Spam-Status: No, score=-5.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ps7HOTtZeWV0 for ; Mon, 13 Jun 2016 19:05:32 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 2D3DA5F3A1 for ; Mon, 13 Jun 2016 19:05:31 +0000 (UTC) Received: (qmail 13070 invoked by uid 99); 13 Jun 2016 19:05:30 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2016 19:05:30 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2AA742C1F5D for ; Mon, 13 Jun 2016 19:05:30 +0000 (UTC) Date: Mon, 13 Jun 2016 19:05:30 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@climate.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLIMATE-799) TypeError in subset function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 13 Jun 2016 19:05:35 -0000 [ https://issues.apache.org/jira/browse/CLIMATE-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327953#comment-15327953 ] ASF GitHub Bot commented on CLIMATE-799: ---------------------------------------- Github user lewismc commented on the issue: https://github.com/apache/climate/pull/346 +1 please merge to master branch > 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)