Skip to content

fix: validate accuracy is a positive even integer upfront (closes #25)#36

Merged
GregoryMorse merged 1 commit into
masterfrom
feature/issue-25-accuracy-validation
Apr 9, 2026
Merged

fix: validate accuracy is a positive even integer upfront (closes #25)#36
GregoryMorse merged 1 commit into
masterfrom
feature/issue-25-accuracy-validation

Conversation

@GregoryMorse
Copy link
Copy Markdown
Owner

calc_support_resistance and get_extrema now raise a clear ValueError with a descriptive message when accuracy is not a positive even integer, instead of letting findiff raise a cryptic traceback deep in the call stack. The root cause of the original reports (default accuracy=1) was already fixed by changing the default to accuracy=2.

calc_support_resistance and get_extrema now raise a clear ValueError with a
descriptive message when accuracy is not a positive even integer, instead of
letting findiff raise a cryptic traceback deep in the call stack.
The root cause of the original reports (default accuracy=1) was already fixed
by changing the default to accuracy=2.
@GregoryMorse GregoryMorse merged commit e962c2a into master Apr 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant