Skip to content

Fix validation and remove unnecessary assert statements#507

Merged
cpaniaguam merged 6 commits intomainfrom
503-raise-valueerror-instead-of-assert
Jul 21, 2024
Merged

Fix validation and remove unnecessary assert statements#507
cpaniaguam merged 6 commits intomainfrom
503-raise-valueerror-instead-of-assert

Conversation

@cpaniaguam
Copy link
Copy Markdown
Collaborator

This pull request includes several changes to improve validation and remove unnecessary assert statements in the codebase.

The following changes are included:

  • validation for the name parameter in the constructor, bounds, and types for regression formula and regression prior

  • removal of unnecessary assert statements in the code in favor of raising exeptions

@cpaniaguam cpaniaguam linked an issue Jul 19, 2024 that may be closed by this pull request
@cpaniaguam cpaniaguam self-assigned this Jul 19, 2024
@cpaniaguam cpaniaguam requested a review from digicosmos86 July 19, 2024 19:25
@cpaniaguam cpaniaguam added the enhancement New feature or request label Jul 19, 2024
Copy link
Copy Markdown
Member

@AlexanderFengler AlexanderFengler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@cpaniaguam cpaniaguam merged commit 4f0fffa into main Jul 21, 2024
@digicosmos86 digicosmos86 deleted the 503-raise-valueerror-instead-of-assert branch November 28, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raise ValueError instead of assert

2 participants