Skip to content

Commit 3d84607

Browse files
committed
make into argument for adapter.split keyword-only
1 parent f46b3d6 commit 3d84607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/adapters/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def shift(self, keys: str | Sequence[str], by: float | np.ndarray):
667667
self.transforms.append(MapTransform({key: Shift(shift=by) for key in keys}))
668668
return self
669669

670-
def split(self, key: str, into: Sequence[str], indices_or_sections: int | Sequence[int] = None, axis: int = -1):
670+
def split(self, key: str, *, into: Sequence[str], indices_or_sections: int | Sequence[int] = None, axis: int = -1):
671671
from .transforms import Split
672672

673673
self.transforms.append(Split(key, into, indices_or_sections, axis))

0 commit comments

Comments
 (0)