You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by go...@apache.org on 2016/07/29 17:19:36 UTC
[06/18] climate git commit: Fixed PEP8 violations in dataset_loader.py
Fixed PEP8 violations in dataset_loader.py
Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/fa8356c5
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/fa8356c5
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/fa8356c5
Branch: refs/heads/CLIMATE-825
Commit: fa8356c5492df5827020be9500d8d2375e777038
Parents: 541dbe5
Author: Alex Goodman <ag...@users.noreply.github.com>
Authored: Tue Jul 26 21:48:38 2016 -0700
Committer: Alex Goodman <ag...@users.noreply.github.com>
Committed: Tue Jul 26 21:48:38 2016 -0700
----------------------------------------------------------------------
ocw/dataset_loader.py | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/climate/blob/fa8356c5/ocw/dataset_loader.py
----------------------------------------------------------------------
diff --git a/ocw/dataset_loader.py b/ocw/dataset_loader.py
index be43c05..8ee1b93 100644
--- a/ocw/dataset_loader.py
+++ b/ocw/dataset_loader.py
@@ -25,6 +25,7 @@ import ocw.data_source.esgf as esgf
import ocw.data_source.rcmed as rcmed
import ocw.data_source.dap as dap
+
class DatasetLoader:
'''Generate OCW Dataset objects from a variety of sources.'''
@@ -99,13 +100,13 @@ class DatasetLoader:
# Default loaders
self._source_loaders = {
- 'local':local.load_file,
- 'local_split':local.load_dataset_from_multiple_netcdf_files,
- 'local_multiple':local.load_multiple_files,
- 'esgf':esgf.load_dataset,
- 'rcmed':rcmed.parameter_dataset,
- 'dap':dap.load
- }
+ 'local': local.load_file,
+ 'local_split': local.load_dataset_from_multiple_netcdf_files,
+ 'local_multiple': local.load_multiple_files,
+ 'esgf': esgf.load_dataset,
+ 'rcmed': rcmed.parameter_dataset,
+ 'dap': dap.load
+ }
def add_source_loader(self, source_name, loader_func):
'''