Skip to content

Commit e9fd47b

Browse files
authored
Merge pull request #390 from sterlingbaldwin/master
Fixes crash while running ocean_add_depth This merge fixes an if clause that I believe to be backwards.
2 parents f9ad3a8 + 8ce4f16 commit e9fd47b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conda_package/mpas_tools/ocean/depth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def add_depth(inFileName, outFileName, coordFileName=None):
111111
An MPAS-Ocean file with ``refBottomDepth``
112112
"""
113113

114-
if coordFileName is not None:
114+
if coordFileName is None:
115115
coordFileName = inFileName
116116

117117
ds = xarray.open_dataset(inFileName, mask_and_scale=False)

0 commit comments

Comments
 (0)