Repository: climate
Updated Branches:
  refs/heads/master a54b66ebd -> 83d83ba5e


CLI supports generating config file


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

Branch: refs/heads/master
Commit: 88bb4a37d5e737b8928b903d93e4ccb7afc4b410
Parents: fe190b6
Author: Maziyar Boustani <[email protected]>
Authored: Wed Jul 22 09:21:51 2015 -0700
Committer: Maziyar Boustani <[email protected]>
Committed: Wed Jul 22 09:21:51 2015 -0700

----------------------------------------------------------------------
 ocw-cli/cli_app.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/88bb4a37/ocw-cli/cli_app.py
----------------------------------------------------------------------
diff --git a/ocw-cli/cli_app.py b/ocw-cli/cli_app.py
index 40e797b..5f07c0d 100644
--- a/ocw-cli/cli_app.py
+++ b/ocw-cli/cli_app.py
@@ -35,6 +35,7 @@ from ocw.dataset import Bounds
 from ocw.data_source.local import load_file
 import ocw.utils as utils
 import ocw.data_source.esgf as esgf
+from ocw_config_runner.configuration_writer import export_evaluation_to_config
 
 import ssl
 if hasattr(ssl, '_create_unverified_context'):
@@ -645,6 +646,7 @@ def run_screen(model_datasets, models_info, 
observations_info,
                             targets.append(new_model_datasets[int(target[-1])])
 
                   evaluation_result = evaluation.Evaluation(reference, 
targets, [mean_bias])
+                  export_evaluation_to_config(evaluation_result)
                   evaluation_result.run()
                   screen.addstr(8, 4, "--> Evaluation Finished.")
                   screen.refresh()
@@ -697,6 +699,7 @@ def run_screen(model_datasets, models_info, 
observations_info,
                             targets.append(new_model_datasets[int(target[-1])])
 
                   evaluation_result = evaluation.Evaluation(reference, 
targets, [spatial_std_dev])
+                  export_evaluation_to_config(evaluation_result)
                   evaluation_result.run()
 
                   rcm_std_dev = evaluation_result.results

Reply via email to