Author: bugman Date: Tue Feb 19 17:19:34 2008 New Revision: 5028 URL: http://svn.gna.org/viewcvs/relax?rev=5028&view=rev Log: Fix for the testing of the force arg of the n_state_model.cone_pdb() user function. The arg should now be a bool. Modified: branches/N_state_model/prompt/n_state_model.py Modified: branches/N_state_model/prompt/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/prompt/n_state_model.py?rev=5028&r1=5027&r2=5028&view=diff ============================================================================== --- branches/N_state_model/prompt/n_state_model.py (original) +++ branches/N_state_model/prompt/n_state_model.py Tue Feb 19 17:19:34 2008 @@ -233,8 +233,8 @@ raise RelaxNoneStrError, ('directory name', dir) # The force flag. - if type(force) != int or (force != 0 and force != 1): - raise RelaxBinError, ('force flag', force) + if type(force) != bool: + raise RelaxBoolError, ('force flag', force) # Execute the functional code. n_state_model.cone_pdb(scale=scale, file=file, dir=dir, force=force)