Skip to content

Commit 5f249ec

Browse files
committed
Fix PEP8 style issues
1 parent 5280ea3 commit 5f249ec

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

compass/ocean/inactive_top_cells.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ def remove_inactive_top_cells_output(in_filename, inactive_top_cells=1):
2323
out_filename = in_filename.split('.')[0] + '_crop.nc'
2424

2525
with xarray.open_dataset(in_filename) as ds_in:
26-
ds_out = ds_in.isel(nVertLevels=slice(1,None))
26+
ds_out = ds_in.isel(nVertLevels=slice(1, None))
2727

2828
write_netcdf(ds_out, out_filename)

compass/ocean/tests/global_ocean/init/initial_state.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,17 @@ def run(self):
185185
ds = ds.isel(Time=0)
186186

187187
if ('minLevelCell' in ds):
188-
if config.has_option('vertical_grid', 'inactive_top_cells'):
189-
offset = config.getint('vertical_grid', 'inactive_top_cells')
188+
if config.has_option('vertical_grid',
189+
'inactive_top_cells'):
190+
offset = config.getint('vertical_grid',
191+
'inactive_top_cells')
190192
minLevelCell = ds.minLevelCell+offset
191193
ds_out['minLevelCell'] = minLevelCell
192194
else:
193195
logger.info(" - Streams missing for inactive top cells")
194-
195-
remove_inactive_top_cells_output(in_filename, inactive_top_cells=offset)
196+
197+
remove_inactive_top_cells_output(in_filename,
198+
inactive_top_cells=offset)
196199

197200
write_netcdf(ds_out, out_filename)
198201
logger.info(" - Complete")

compass/ocean/tests/global_ocean/performance_test/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def validate(self):
6767
if offset > 0:
6868
remove_inactive_top_cells_output('forward/output.nc',
6969
inactive_top_cells=offset)
70-
variables = [
71-
'temperature', 'salinity', 'layerThickness', 'normalVelocity']
70+
variables = ['temperature', 'salinity', 'layerThickness',
71+
'normalVelocity']
7272
compare_variables(test_case=self, variables=variables,
7373
filename1='forward/output_crop.nc',
7474
filename2='forward/output_comp.nc',

0 commit comments

Comments
 (0)