Skip to content

Commit

Permalink
fix: revised ValueError comment - feedback addressed by Jason Lee
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmlee committed Jan 30, 2025
1 parent cb1f0c6 commit 2823927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pystats_norm/qnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def qnorm(p, mean=0, sd=1, lower_tail=True):
raise ValueError("p must be between 0 and 1 (exclusive).")

if not sd > 0:
raise ValueError("standard deviation must be non-negative")
raise ValueError("standard deviation must be positive")

if lower_tail:
result = mean + sd * np.sqrt(2) * erfinv(2 * p - 1)
Expand Down

0 comments on commit 2823927

Please sign in to comment.