Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor argument validation utilities #365

Merged
merged 5 commits into from
Sep 10, 2023
Merged

Refactor argument validation utilities #365

merged 5 commits into from
Sep 10, 2023

Conversation

btjanaka
Copy link
Member

@btjanaka btjanaka commented Sep 9, 2023

Description

Currently, the argument validation utilities do not perform preprocessing on the arguments passed into them. However, every call of these utilities is prefaced with preprocessing (e.g., converting with asarray). This PR moves the preprocessing into the utilities. This should make it easier to handle argument validation as there is no longer a need to repeat preprocessing code.

TODO

  • Refactor validate_batch_args
  • Refactor validate_single_args

Questions

Status

  • I have read the guidelines in
    CONTRIBUTING.md
  • I have formatted my code using yapf
  • I have tested my code by running pytest
  • I have linted my code with pylint
  • I have added a one-line description of my change to the changelog in
    HISTORY.md
  • This PR is ready to go

@btjanaka btjanaka merged commit 3387935 into master Sep 10, 2023
17 checks passed
@btjanaka btjanaka deleted the validate-refactor branch September 10, 2023 11:53
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