Replace asserts with type checks
Detailed Description
In modules such as MolecularSystem, there is assert
to check the type. This should be a type check so that the user gets a nice error message with the problem.
Context
This will make it easier for new users to use the various functions in MolecularSystem.