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

Type checking and schema enforcement #46

Open
swo opened this issue Dec 19, 2024 · 0 comments
Open

Type checking and schema enforcement #46

swo opened this issue Dec 19, 2024 · 0 comments

Comments

@swo
Copy link
Contributor

swo commented Dec 19, 2024

          This is shorter as long as we hold to "all actual containers are ndarrays." Which I suppose with #40 we're sort of locking in. Otherwise the paranoia of the original could be useful.

I think what I really want long-term is some sort of schema-like version of Simulation.PROPERTIES which asserts names and the types that simulation will use, so that here we can assert all(isinstance(v, Simulation.PROPERTIES[k]) for k,v in infection.items)

Originally posted by @afmagee42 in #45 (comment)

This was referenced Dec 19, 2024
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

No branches or pull requests

1 participant