Skip to content

Commit a3cfe10

Browse files
fix(utils): one argument of set_attr_if_exists was missing its default value, which was throwing an error e.g. when ds.ozzy.save was called
1 parent 57686d8 commit a3cfe10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ozzy/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def bins_from_axis(axis: np.ndarray) -> np.ndarray:
755755
def set_attr_if_exists(
756756
da: xr.DataArray,
757757
attr: str,
758-
str_exists: str | Iterable[str] | Callable | None,
758+
str_exists: str | Iterable[str] | Callable | None = None,
759759
str_doesnt: str | None = None,
760760
):
761761
"""

0 commit comments

Comments
 (0)