Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
CLIMATE-455 - Update reshape_monthly_to_annually to use copies of data
Browse files Browse the repository at this point in the history
- utils.reshape_monthly_to_annually now uses a copy of the passed
  datasets data instead of the actual datasets.values.
  • Loading branch information
MJJoyce committed Jun 4, 2014
1 parent e9437d0 commit 574ee97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocw/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 574ee97

Please sign in to comment.