Make assert throw a cont error using some meta programming and by wrapping all the code into try: except AssertionError: <Error handling>. Replace actual asserts with some exception.
Also that would be a great idea to clean up all of the insane State.loc stuff.
Make assert throw a cont error using some meta programming and by wrapping all the code into
try: except AssertionError: <Error handling>. Replace actual asserts with some exception.Also that would be a great idea to clean up all of the insane
State.locstuff.