You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by hu...@apache.org on 2016/06/26 22:31:07 UTC

[1/2] climate git commit: CLIMATE-809 - Fix coveragerc file

Repository: climate
Updated Branches:
  refs/heads/master fc61608a9 -> 54f211084


CLIMATE-809 - Fix coveragerc file


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

Branch: refs/heads/master
Commit: a9efae105ac0a467139c26d206f8188f149ec120
Parents: 6b9fae9
Author: Ibrahim <ja...@gmail.com>
Authored: Thu Jun 16 13:24:16 2016 +0530
Committer: Ibrahim <ja...@gmail.com>
Committed: Thu Jun 16 13:26:31 2016 +0530

----------------------------------------------------------------------
 .coveragerc              | 7 ++++---
 ocw/data_source/local.py | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/a9efae10/.coveragerc
----------------------------------------------------------------------
diff --git a/.coveragerc b/.coveragerc
index 1763e54..4f9727a 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -18,13 +18,14 @@
 [report]
 exclude_lines = 
     if __name__ == .__main__.:
-    
-    # These lines will never be executed under any circumstances
+    pragma: no cover
+
+    # These lines will never be executed under any circumstances in local module
     if level_index == 0:
     elif level_index == 1:
     elif level_index == 2:
-    else:
     
+    # In utils module
     # Due to issue https://issues.apache.org/jira/browse/CLIMATE-803
     def calc_subregion_area_mean_and_std
 

http://git-wip-us.apache.org/repos/asf/climate/blob/a9efae10/ocw/data_source/local.py
----------------------------------------------------------------------
diff --git a/ocw/data_source/local.py b/ocw/data_source/local.py
index 0fa81b1..11cedcd 100644
--- a/ocw/data_source/local.py
+++ b/ocw/data_source/local.py
@@ -276,7 +276,7 @@ def load_file(file_path,
             values = values [:,elevation_index,:,:]
         elif level_index == 2:
             values = values [:,:,elevation_index,:]
-        else:
+        else: #pragma: no cover
             values = values [:,:,:,elevation_index]
 
     origin = {


[2/2] climate git commit: coveragerc file has been fixed

Posted by hu...@apache.org.
coveragerc file has been fixed


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

Branch: refs/heads/master
Commit: 54f211084985cc87e9e67e977e9614899554bb01
Parents: fc61608 a9efae1
Author: huikyole <hu...@argo.jpl.nasa.gov>
Authored: Sun Jun 26 15:30:03 2016 -0700
Committer: huikyole <hu...@argo.jpl.nasa.gov>
Committed: Sun Jun 26 15:30:03 2016 -0700

----------------------------------------------------------------------
 .coveragerc              | 7 ++++---
 ocw/data_source/local.py | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/54f21108/ocw/data_source/local.py
----------------------------------------------------------------------