Author: bugman Date: Wed Dec 23 11:21:46 2015 New Revision: 28158 URL: http://svn.gna.org/viewcvs/relax?rev=28158&view=rev Log: Added a check for the total argument for the frame_order.distribute user function. The maximum value is 9999, as the PDB format cannot accept more models. Modified: trunk/specific_analyses/frame_order/uf.py Modified: trunk/specific_analyses/frame_order/uf.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/frame_order/uf.py?rev=28158&r1=28157&r2=28158&view=diff ============================================================================== --- trunk/specific_analyses/frame_order/uf.py (original) +++ trunk/specific_analyses/frame_order/uf.py Wed Dec 23 11:21:46 2015 @@ -68,6 +68,10 @@ # Printout. print("Uniform distribution of structures representing the frame order motions.") + # Check the total. + if total > 9999: + raise RelaxError("A maximum of 9999 models is allowed in the PDB format.") + # Checks. check_pipe() check_model()