Skip to content

Commit 7e22f2b

Browse files
committed
Fix error message in add_toroidal_geometry_coords()
1 parent 7505c6d commit 7e22f2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xbout/geometries.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ def add_toroidal_geometry_coords(ds, *, coordinates=None, grid=None):
294294
if v not in ds:
295295
if grid is None:
296296
raise ValueError(
297-
"Grid file is required to provide %s. Pass the grid "
298-
"file name as the 'gridfilepath' argument to "
299-
"open_boutdataset()."
297+
f"Grid file is required to provide {v}. Pass the grid "
298+
f"file name as the 'gridfilepath' argument to "
299+
f"open_boutdataset()."
300300
)
301301
# ds[v] = grid[v]
302302
# Work around issue where xarray drops attributes on coordinates when a new

0 commit comments

Comments
 (0)