Author: bugman Date: Sun Jan 13 12:43:02 2008 New Revision: 4669 URL: http://svn.gna.org/viewcvs/relax?rev=4669&view=rev Log: Fix for the spin_id arg of the model_free.select_model() user function. Modified: 1.3/prompt/model_free.py Modified: 1.3/prompt/model_free.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/model_free.py?rev=4669&r1=4668&r2=4669&view=diff ============================================================================== --- 1.3/prompt/model_free.py (original) +++ 1.3/prompt/model_free.py Sun Jan 13 12:43:02 2008 @@ -25,7 +25,7 @@ # relax module imports. import help -from relax_errors import RelaxIntError, RelaxListError, RelaxListStrError, RelaxNoneIntError, RelaxStrError +from relax_errors import RelaxIntError, RelaxListError, RelaxListStrError, RelaxNoneStrError, RelaxStrError class Model_free: @@ -358,8 +358,8 @@ raise RelaxStrError, ('model', model) # Spin identification string. - if spin_id != None and type(spin_id) != int: - raise RelaxNoneIntError, ('spin identification string', spin_id) + if spin_id != None and type(spin_id) != str: + raise RelaxNoneStrError, ('spin identification string', spin_id) # Execute the functional code. model_free.select_model(model=model, spin_id=spin_id)