Skip to content

Commit f6dfc92

Browse files
committed
Small changes to allow new rompy to run with SWAN
1 parent aed126b commit f6dfc92

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ recursive-include rompy *.png
88
recursive-include docs/source *
99
include docs/Makefile docs/make.bat
1010

11-
recursive-include templates *
11+
recursive-include rompy/templates *
1212

1313
include versioneer.py
1414
include rompy/_version.py

rompy/swan/config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ def cmd(self):
213213
ret = "OUTPUT OPTIONS BLOCK 8\n"
214214
ret += f"BLOCK 'COMPGRID' HEADER 'outputs/swan_out.nc' LAYOUT 1 {' '.join(self.grid.variables)} OUT {self.grid.period.start.strftime(self._datefmt)} {out_intvl}\n"
215215
ret += "\n"
216-
if self.spec.locations:
216+
if len(self.spec.locations.coords) > 0:
217217
ret += f"POINTs 'pts' FILE 'out.loc'\n"
218-
ret += f"SPECout 'pts' SPEC2D ABS 'outputs/spec_out.nc' OUTPUT {self.spec.period.start.strftime(self._datefmt)} {out_intvl}\n"
219-
ret += f"TABle 'pts' HEADer 'outputs/tab_out.nc' TIME XP YP HS TPS TM01 DIR DSPR WIND OUTPUT {self.grid.period.start.strftime(self._datefmt)} {out_intvl}\n"
218+
ret += f"SPECout 'pts' SPEC2D ABS 'outputs/spec_out.nc' OUTPUT {self.spec.period.start.strftime(self._datefmt)} {out_intvl}\n"
219+
ret += f"TABle 'pts' HEADer 'outputs/tab_out.nc' TIME XP YP HS TPS TM01 DIR DSPR WIND OUTPUT {self.grid.period.start.strftime(self._datefmt)} {out_intvl}\n"
220220
return ret
221221

222222
def __str__(self):

rompy/swan/subcomponents/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)