Skip to content

Commit

Permalink
Update exceptions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aadya940 authored Feb 10, 2024
1 parent a80d50d commit 6c4c929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainopy/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def wrapper(*args, **kwargs):
elif func.__name__ == "simulate":
n_steps = args[2]
initial_state = args[1]
if not isinstance(n_steps, int) or len(n_steps) <= 0:
if not isinstance(n_steps, int) or n_steps <= 0:
raise ValueError("Argument 'n_steps' must be a non-empty string.")

if not isinstance(initial_state, str) or (
Expand Down

0 comments on commit 6c4c929

Please sign in to comment.