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 A5D1C200D1B for ; Wed, 27 Sep 2017 23:39:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A45941609C1; Wed, 27 Sep 2017 21:39:51 +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 1FA661609EE for ; Wed, 27 Sep 2017 23:39:50 +0200 (CEST) Received: (qmail 87037 invoked by uid 500); 27 Sep 2017 21:39:50 -0000 Mailing-List: contact commits-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 commits@climate.apache.org Received: (qmail 86929 invoked by uid 99); 27 Sep 2017 21:39:50 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2017 21:39:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5E5E7F5BAE; Wed, 27 Sep 2017 21:39:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: goodman@apache.org To: commits@climate.apache.org Date: Wed, 27 Sep 2017 21:39:51 -0000 Message-Id: <2a457996bf3341aa88687fdf5240f8ee@git.apache.org> In-Reply-To: <244f3e15580d4ac7b1364bde3475d8ca@git.apache.org> References: <244f3e15580d4ac7b1364bde3475d8ca@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [4/6] climate git commit: Default values for filename_pattern in split file loader archived-at: Wed, 27 Sep 2017 21:39:51 -0000 Default values for filename_pattern in split file loader Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/8168d204 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/8168d204 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/8168d204 Branch: refs/heads/master Commit: 8168d2042390712f9d58051633d93c267a002756 Parents: eacee1f Author: Alex Authored: Tue Sep 26 16:21:09 2017 -0700 Committer: Alex Committed: Tue Sep 26 16:21:09 2017 -0700 ---------------------------------------------------------------------- ocw/data_source/local.py | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/8168d204/ocw/data_source/local.py ---------------------------------------------------------------------- diff --git a/ocw/data_source/local.py b/ocw/data_source/local.py index 734b091..896032f 100644 --- a/ocw/data_source/local.py +++ b/ocw/data_source/local.py @@ -508,6 +508,7 @@ def load_dataset_from_multiple_netcdf_files(variable_name, variable_unit=None, ''' nc_files = [] if not file_list: + filename_pattern = [''] if not filename_pattern else filename_pattern for pattern in filename_pattern: nc_files.extend(glob(file_path + pattern)) else: