climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From good...@apache.org
Subject [05/11] climate git commit: Preserve data_source info after each load
Date Fri, 29 Jul 2016 18:31:42 GMT
Preserve data_source info after each load


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/4add58b2
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/4add58b2
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/4add58b2

Branch: refs/heads/master
Commit: 4add58b2e5dd4e6b28509402e35adffbc03692e7
Parents: d937675
Author: Alex Goodman <agoodm@users.noreply.github.com>
Authored: Mon Jul 25 15:14:42 2016 -0700
Committer: Alex Goodman <agoodm@users.noreply.github.com>
Committed: Mon Jul 25 15:14:42 2016 -0700

----------------------------------------------------------------------
 ocw/dataset_loader.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/4add58b2/ocw/dataset_loader.py
----------------------------------------------------------------------
diff --git a/ocw/dataset_loader.py b/ocw/dataset_loader.py
index 32a7ae6..2eb9ef0 100644
--- a/ocw/dataset_loader.py
+++ b/ocw/dataset_loader.py
@@ -199,4 +199,8 @@ class DatasetLoader:
         loader_func = self._source_loaders[data_source]
 
         # The remaining kwargs should be specific to the loader
-        return loader_func(**kwargs)
+        output = loader_func(**kwargs)
+
+        # Preserve data_source info for later use
+        kwargs['data_source'] = data_source
+        return output


Mime
View raw message