Path B - Module 52: Framework Reliability & SMonitor#

In large scale engineering, things will fail. SMonitor allows you to trace why a PETase mutation failed or why a file format is missing a specific attribute.

import molsysmt as msm

try:
    # Attempting an impossible conversion
    msm.convert("not_a_molecule", to_form='openmm.Simulation')
except Exception as e:
    print(f"SMonitor captured a detailed error: {e}")
SMonitor captured a detailed error: Error in argument 'molecular_system' with value 'not_a_molecule'. Check the API for the expected argument format. Docs: https://www.uibcdf.org/MolSysMT | Issues: https://github.com/uibcdf/MolSysMT/issues