Author: bugman Date: Tue May 20 19:06:02 2014 New Revision: 23264 URL: http://svn.gna.org/viewcvs/relax?rev=23264&view=rev Log: Python >= 3.2 fix for the Relax_disp.test_sod1wt_t25_to_sherekhan_input system test. The B0 field value of the ShereKhan input files created by the relax_disp.sherekhan_input user function was formatted as "%s". However in Python >= 3.2, floats are now converted to have 14 decimal places whereas previous Python versions only had 10 places. The user function backend now forces only 10 decimal places to be written to the input files. Modified: trunk/specific_analyses/relax_disp/sherekhan.py Modified: trunk/specific_analyses/relax_disp/sherekhan.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/sherekhan.py?rev=23264&r1=23263&r2=23264&view=diff ============================================================================== --- trunk/specific_analyses/relax_disp/sherekhan.py (original) +++ trunk/specific_analyses/relax_disp/sherekhan.py Tue May 20 19:06:02 2014 @@ -96,7 +96,7 @@ file = open_write_file(file_name=file_name, dir=dir_name, force=force) # The B0 field for the nuclei of interest in MHz (must be positive to be accepted by the server). - file.write("%s\n" % abs(frq / g1H * g15N / 1e6)) + file.write("%.10f\n" % abs(frq / g1H * g15N / 1e6)) # The constant relaxation time for the CPMG experiment in seconds. file.write("%s\n" % (time))