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 <ago...@users.noreply.github.com> Authored: Tue Sep 26 16:21:09 2017 -0700 Committer: Alex <ago...@users.noreply.github.com> 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: