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/10/24 23:27:13 UTC

[4/5] climate git commit: Fix minor error in run_RCMES.py

Fix minor error in run_RCMES.py


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

Branch: refs/heads/master
Commit: 4331ed08874b5a64cb1d82276db1e707619e600f
Parents: 528fe16
Author: Alex Goodman <ag...@users.noreply.github.com>
Authored: Fri Oct 21 17:30:08 2016 -0700
Committer: Alex Goodman <ag...@users.noreply.github.com>
Committed: Fri Oct 21 17:30:08 2016 -0700

----------------------------------------------------------------------
 RCMES/run_RCMES.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/4331ed08/RCMES/run_RCMES.py
----------------------------------------------------------------------
diff --git a/RCMES/run_RCMES.py b/RCMES/run_RCMES.py
index 7609865..516be92 100644
--- a/RCMES/run_RCMES.py
+++ b/RCMES/run_RCMES.py
@@ -113,7 +113,7 @@ for i, dataset in enumerate(obs_datasets):
                                                           temporal_resolution)
 
     if multiplying_factor[i] != 1:
-        obs_dataset.values *= multiplying_factor[i]
+        obs_datasets[i].values *= multiplying_factor[i]
 
 """ Step 2: Load model NetCDF Files into OCW Dataset Objects """
 model_datasets = load_datasets_from_config(extra_opts, *model_data_info)
@@ -148,7 +148,7 @@ if not 'boundary_type' in space_info:
                     start=start_time,
                     end=end_time)
 else:
-    bounds = Bounds(boundary_type=space_info['boundary_type'], 
+    bounds = Bounds(boundary_type=space_info['boundary_type'],
                     start=start_time,
                     end=end_time)