diff --git a/compass/ocean/tests/tides/__init__.py b/compass/ocean/tests/tides/__init__.py index ec029d4db5..0288850c34 100644 --- a/compass/ocean/tests/tides/__init__.py +++ b/compass/ocean/tests/tides/__init__.py @@ -1,8 +1,7 @@ -from compass.testgroup import TestGroup - -from compass.ocean.tests.tides.mesh import Mesh -from compass.ocean.tests.tides.init import Init from compass.ocean.tests.tides.forward import Forward +from compass.ocean.tests.tides.init import Init +from compass.ocean.tests.tides.mesh import Mesh +from compass.testgroup import TestGroup class Tides(TestGroup): @@ -17,7 +16,7 @@ def __init__(self, mpas_core): super().__init__(mpas_core=mpas_core, name='tides') - for mesh_name in ['Icos7']: + for mesh_name in ['Icos7', 'VR45to5']: mesh = Mesh(test_group=self, mesh_name=mesh_name) self.add_test_case(mesh) diff --git a/compass/ocean/tests/tides/analysis/__init__.py b/compass/ocean/tests/tides/analysis/__init__.py index 789e85dbc7..cda4f59676 100644 --- a/compass/ocean/tests/tides/analysis/__init__.py +++ b/compass/ocean/tests/tides/analysis/__init__.py @@ -1,14 +1,15 @@ -from compass.step import Step +import os -import netCDF4 -import matplotlib.pyplot as plt -import matplotlib.cm as cm -import numpy as np import cartopy.crs as ccrs import cartopy.feature as cfeature -import os +import matplotlib.cm as cm +import matplotlib.pyplot as plt +import netCDF4 +import numpy as np from mpas_tools.logging import check_call +from compass.step import Step + class Analysis(Step): """ @@ -103,7 +104,7 @@ def write_coordinate_file(self, idx): # Write coordinate file for OTPS2 f = open('lat_lon', 'w') for i in range(nCells): - f.write(str(lat_grid[i])+' '+str(lon_grid[i])+'\n') + f.write(str(lat_grid[i]) + ' ' + str(lon_grid[i]) + '\n') f.close() def setup_otps2(self): @@ -121,7 +122,7 @@ def setup_otps2(self): 'comment': '! 2. latitude/longitude/