Skip to content

Commit ffa80e1

Browse files
committed
traj2d: do not require obs dim as variable
1 parent be9f249 commit ffa80e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trajan/traj2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def condense_obs(self) -> xr.Dataset:
148148
ds = self.ds.copy(deep=True)
149149

150150
# The observation coordinate will be re-written
151-
ds = ds.drop_vars([self.obs_dim])
151+
ds = ds.drop_vars([self.obs_dim], errors='ignore')
152152

153153
assert self.obs_dim in ds[
154154
self.

0 commit comments

Comments
 (0)