Author: bugman Date: Tue Feb 1 20:44:06 2011 New Revision: 12498 URL: http://svn.gna.org/viewcvs/relax?rev=12498&view=rev Log: Missing spaces in the BMRB model-free model name are now accepted. Modified: branches/bmrb/specific_fns/model_free/bmrb.py Modified: branches/bmrb/specific_fns/model_free/bmrb.py URL: http://svn.gna.org/viewcvs/relax/branches/bmrb/specific_fns/model_free/bmrb.py?rev=12498&r1=12497&r2=12498&view=diff ============================================================================== --- branches/bmrb/specific_fns/model_free/bmrb.py (original) +++ branches/bmrb/specific_fns/model_free/bmrb.py Tue Feb 1 20:44:06 2011 @@ -92,7 +92,12 @@ # Loop over the dictionary. for item in map.items(): + # Normal match. if item[search_index] == search_text: + return item[return_index] + + # No whitespace. + if string.replace(item[search_index], ' ', '') == search_text: return item[return_index] # The bmrb name is the relax name!