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

validation module #21

Open
amaloney opened this issue Sep 28, 2024 · 4 comments
Open

validation module #21

amaloney opened this issue Sep 28, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@amaloney
Copy link
Contributor

See arviz-devs/arviz-plots#83 for more info. The goal is to create modules to verify inputs from users.

@amaloney amaloney self-assigned this Sep 28, 2024
@amaloney amaloney added the enhancement New feature or request label Sep 28, 2024
@OriolAbril
Copy link
Member

First step might be porting/adapting https://github.com/arviz-devs/arviz-stats/blob/main/src/arviz_stats/validate.py. Also, there are validator functions available https://github.com/arviz-devs/arviz-base/blob/main/src/arviz_base/rcparams.py which are triggered every time you attempt to set the value of an rcParam and can probably help with some of the validation steps

@amaloney
Copy link
Contributor Author

Do we want to use a tool for this? Perhaps something like pydantic?

@OriolAbril
Copy link
Member

Probably not unless it is something extremely lightweight and well supported in all platforms. pydantic I think would fit the bill. I have not used it yet though so not sure.

@amaloney
Copy link
Contributor Author

I think I can investigate its use here. I'll report back with more info

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

No branches or pull requests

2 participants