CLIMATE-594 - Add origin info to ESGF data source
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/a708478b Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/a708478b Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/a708478b Branch: refs/heads/master Commit: a708478beb9126175ca5ce297b9ab781e33ad175 Parents: 7f1f033 Author: Michael Joyce <[email protected]> Authored: Fri Feb 27 12:41:21 2015 -0800 Committer: Michael Joyce <[email protected]> Committed: Fri Feb 27 12:41:21 2015 -0800 ---------------------------------------------------------------------- ocw/data_source/esgf.py | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/a708478b/ocw/data_source/esgf.py ---------------------------------------------------------------------- diff --git a/ocw/data_source/esgf.py b/ocw/data_source/esgf.py index c5ed03a..b7a9f25 100644 --- a/ocw/data_source/esgf.py +++ b/ocw/data_source/esgf.py @@ -84,6 +84,10 @@ def load_dataset(dataset_id, name=name, elevation_index=elevation_index)) + origin = {'dataset_id': dataset_id, 'variable': variable} + for ds in datasets: + ds.origin = origin + return datasets def _get_file_download_data(dataset_id, variable, url=DEFAULT_ESGF_SEARCH):
