CLIMATE-455 - Update reshape_monthly_to_annually to use copies of data - utils.reshape_monthly_to_annually now uses a copy of the passed datasets data instead of the actual datasets.values.
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/574ee97f Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/574ee97f Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/574ee97f Branch: refs/heads/master Commit: 574ee97f3871a3b219f23d999957e509f0a87380 Parents: e9437d0 Author: Michael Joyce <[email protected]> Authored: Wed Jun 4 11:59:33 2014 -0700 Committer: Michael Joyce <[email protected]> Committed: Wed Jun 4 11:59:33 2014 -0700 ---------------------------------------------------------------------- ocw/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/574ee97f/ocw/utils.py ---------------------------------------------------------------------- diff --git a/ocw/utils.py b/ocw/utils.py index 7abbbfd..4a01f78 100644 --- a/ocw/utils.py +++ b/ocw/utils.py @@ -231,7 +231,7 @@ def reshape_monthly_to_annually(dataset): :rtype: Numpy array ''' - values = dataset.values + values = dataset.values[:] data_shape = values.shape num_total_month = data_shape[0] num_year = num_total_month / 12
