Author: bugman Date: Sat Oct 7 19:46:37 2006 New Revision: 2610 URL: http://svn.gna.org/viewcvs/relax?rev=2610&view=rev Log: Fix for bug #7336 (https://gna.org/bugs/index.php?7336). The user function 'pdb.vectors()' was not set up properly. It was expecting the residue number to be an integer and the residue name to be a string. However the default is that both are set to None. This was causing a RelaxError. Modified: 1.3/prompt/pdb.py Modified: 1.3/prompt/pdb.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/pdb.py?rev=2610&r1=2609&r2=2610&view=diff ============================================================================== --- 1.3/prompt/pdb.py (original) +++ 1.3/prompt/pdb.py Sat Oct 7 19:46:37 2006 @@ -191,12 +191,12 @@ raise RelaxStrError, ('proton', proton) # Residue number. - if type(res_num) != int: - raise RelaxIntError, ('residue number', res_num) + if res_num != None and type(res_num) != int: + raise RelaxNoneIntError, ('residue number', res_num) # Residue name. - if type(res_name) != str: - raise RelaxStrError, ('residue name', res_name) + if res_name != None and type(res_name) != str: + raise RelaxNoneStrError, ('residue name', res_name) # Execute the functional code. self.__relax__.generic.pdb.vectors(run=run, heteronuc=heteronuc, proton=proton, res_num=res_num, res_name=res_name)