When an error (check or assertion failure) occurs, the model is dumped to the specified file.
import IMP import IMP.core m= IMP.Model() pts= IMP.core.create_xyzr_particles(m, 10, 10, 10) IMP.add_failure_handler(IMP.DumpModelOnFailure(m, "error.imp"))
Public Member Functions | |
DumpModelOnFailure (Model *m, TextOutput out) | |
virtual std::string | get_type_name () const |
virtual ::IMP::VersionInfo | get_version_info () const |
void | handle_failure () |
Friends | |
template<class T > | |
void | IMP::internal::unref (T *) |