Author: bugman Date: Tue Sep 23 18:12:45 2014 New Revision: 25973 URL: http://svn.gna.org/viewcvs/relax?rev=25973&view=rev Log: The internal structural object validate_models() method now accepts the verbosity argument. This is used to silence printouts. Modified: trunk/lib/structure/internal/object.py Modified: trunk/lib/structure/internal/object.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/structure/internal/object.py?rev=25973&r1=25972&r2=25973&view=diff ============================================================================== --- trunk/lib/structure/internal/object.py (original) +++ trunk/lib/structure/internal/object.py Tue Sep 23 18:12:45 2014 @@ -2507,14 +2507,19 @@ self.displacements.to_xml(doc, disp_element) - def validate_models(self): + def validate_models(self, verbosity=1): """Check that the models are consistent with each other. This checks that the primary structure is identical between the models. + + + @keyword verbosity: If 0, then all printouts will be silenced. + @type verbosity: int """ # Print out. - print("Validating models:") + if verbosity: + print("Validating models:") # Loop over the models. for i in range(len(self.structural_data)): @@ -2545,6 +2550,7 @@ raise RelaxError("The atoms of model %i do not match the first model." % self.structural_data[i].num) # Final printout. + if verbosity: print("\tAll models are consistent")