Skip to content

Commit c09a669

Browse files
committed
Update: parameter annotations
1 parent b8f215d commit c09a669

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kaleidoscope/algorithms/randomize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Randomize(InformedBlockAlgorithm):
2020
The algorithm to randomize data.
2121
"""
2222

23-
_dist: Literal["normal", "lognormal", "chlorophyll"] | str
23+
_dist: str
2424
"""The type of measurement error distribution."""
2525

2626
_root_seed: np.ndarray
@@ -30,7 +30,7 @@ def __init__(
3030
self,
3131
dtype: np.dtype = np.single,
3232
m: int = 2,
33-
dist: Literal["normal", "lognormal", "chlorophyll"] | str = "normal",
33+
dist: Literal["normal", "lognormal", "chlorophyll"] = "normal",
3434
seed: np.ndarray | None = None,
3535
):
3636
"""
@@ -95,7 +95,7 @@ def randomize(
9595
case _:
9696
y = x
9797
if clip is not None:
98-
y = np.clip(y, a_min=clip[0], a_max=clip[1])
98+
y = np.clip(y, clip[0], clip[1])
9999
return np.where(np.isfinite(y), y, x)
100100

101101
compute_block = randomize

0 commit comments

Comments
 (0)