Open ssolson opened 1 year ago
Here is an article covering this idea in more detail: https://snyk.io/blog/the-dangers-of-assert-in-python/
Hello! I'm trying to get my feet wet with some python open source. This seems straight forward so I'm happy to take care of it. Does this seem like a good first issue? Thanks!
Hello! I'm trying to get my feet wet with some python open source. This seems straight forward so I'm happy to take care of it. Does this seem like a good first issue? Thanks!
@onedeeper I am so sorry I missed this. Yes this would be a great first issue. Please lmk if you need any help contributing!
Currently MHKiT uses assert staements in its production code (primarilty for type checking functional inputs). As stated in the docs (https://docs.python.org/3/reference/simple_stmts.html#the-assert-statement) assert stements are for debugging.
We should raise an error if the user does not pass the correct information.
So going forward we would convert:
to this