Skip to content

Commit 4042165

Browse files
committed
minor lint
1 parent b2794dc commit 4042165

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cf_xarray/accessor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,8 @@ def __getitem__(self, key):
400400
return self._obj.reset_coords()[varnames].set_coords(varnames)
401401
elif key in _CELL_MEASURES:
402402
raise NotImplementedError("measures not implemented for Dataset yet.")
403-
# return self._obj[_get_measure(self._obj)[key]]
404403
else:
405-
raise KeyError(f"DataArray.cf does not understand the key {key}")
404+
raise KeyError(f"Dataset.cf does not understand the key {key}")
406405

407406

408407
@xr.register_dataarray_accessor("cf")

0 commit comments

Comments
 (0)