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 2017/09/29 05:39:52 UTC

[2/2] climate git commit: Update local_multiple_files tests for 1D lats and lons

Update local_multiple_files tests for 1D lats and lons


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

Branch: refs/heads/master
Commit: 77463b9267e20ebf46e625f394eb35d194fd93f0
Parents: 032c317
Author: Alex <ag...@users.noreply.github.com>
Authored: Thu Sep 28 22:28:17 2017 -0700
Committer: Alex <ag...@users.noreply.github.com>
Committed: Thu Sep 28 22:28:17 2017 -0700

----------------------------------------------------------------------
 ocw/tests/test_local.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/77463b92/ocw/tests/test_local.py
----------------------------------------------------------------------
diff --git a/ocw/tests/test_local.py b/ocw/tests/test_local.py
index 0cca005..4ce5a27 100644
--- a/ocw/tests/test_local.py
+++ b/ocw/tests/test_local.py
@@ -21,7 +21,7 @@ try:
     from urllib.request import urlretrieve
 except ImportError:
     from urllib import urlretrieve
-    
+
 import datetime
 import unittest
 import os
@@ -229,12 +229,10 @@ class TestLoadDatasetFromMultipleNetcdfFiles(unittest.TestCase):
 
     def test_function_load_dataset_from_multiple_netcdf_files_lats(self):
         """Test load_multiple_files function for times."""
-        _, self.latitudes = np.meshgrid(self.longitudes, self.latitudes)
         np.testing.assert_array_equal(self.dataset.lats, self.latitudes)
 
     def test_function_load_dataset_from_multiple_netcdf_files_lons(self):
         """Test load_multiple_files function for times."""
-        self.longitudes, _ = np.meshgrid(self.longitudes, self.latitudes)
         np.testing.assert_array_equal(self.dataset.lons, self.longitudes)
 
     def test_function_load_dataset_from_multiple_netcdf_files_times(self):
@@ -245,12 +243,10 @@ class TestLoadDatasetFromMultipleNetcdfFiles(unittest.TestCase):
 
     def test_function_load_dataset_from_multiple_netcdf_files_alt_lats(self):
         """Test load_multiple_files function for non-default lats."""
-        _, self.alt_lats = np.meshgrid(self.alt_lons, self.alt_lats)
         np.testing.assert_array_equal(self.alt_dataset.lats, self.alt_lats)
 
     def test_function_load_dataset_from_multiple_netcdf_files_alt_lons(self):
         """Test load_multiple_files function for non-default lons."""
-        self.alt_lons, _ = np.meshgrid(self.alt_lons, self.alt_lats)
         np.testing.assert_array_equal(self.alt_dataset.lons, self.alt_lons)
 
     def test_function_load_dataset_from_multiple_netcdf_files_alt_times(self):