Skip to content

Commit

Permalink
fix(browniand_motion): Fix typing of BrownianMotion x0 validator
Browse files Browse the repository at this point in the history
  • Loading branch information
emptymalei committed Mar 17, 2024
1 parent 682cee9 commit 961593f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hamilflow/models/brownian_motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class BrownianMotionIC(BaseModel):

@field_validator("x0")
@classmethod
def check_x0_types(cls, v: Union[float, int, list]) -> float:
def check_x0_types(cls, v: Union[float, int, list]) -> np.ndarray:
if not isinstance(v, (float, int, list)):
raise ValueError(f"Value of x0 should be int/float/list of int/float: {v=}")

Expand Down

0 comments on commit 961593f

Please sign in to comment.