mailr11193 - /branches/bieri_gui/gui_bieri/analyses/auto_model_free.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by michael . bieri on May 19, 2010 - 02:04:
Author: michaelbieri
Date: Wed May 19 02:04:06 2010
New Revision: 11193

URL: http://svn.gna.org/viewcvs/relax?rev=11193&view=rev
Log:
Bond length and CSA values are read from relaxGUI settings dialog.

Modified:
    branches/bieri_gui/gui_bieri/analyses/auto_model_free.py

Modified: branches/bieri_gui/gui_bieri/analyses/auto_model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_model_free.py?rev=11193&r1=11192&r2=11193&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/analyses/auto_model_free.py (original)
+++ branches/bieri_gui/gui_bieri/analyses/auto_model_free.py Wed May 19 
02:04:06 2010
@@ -42,6 +42,7 @@
 from gui_bieri.analyses.results_analysis import model_free_results, 
see_results
 from gui_bieri.analyses.select_model_calc import Select_tensor
 from gui_bieri.base_classes import Container
+from gui_bieri.components.conversion import str_to_float
 from gui_bieri.controller import Redirect_text, Thread_container
 from gui_bieri.derived_wx_classes import StructureTextCtrl
 from gui_bieri.filedialog import opendir, openfile
@@ -557,8 +558,8 @@
         data.mc_num = int(global_settings[6])
 
         # The bond length, CSA values.
-        data.bond_length = 1.02 * 1e-10
-        data.csa = -172 * 1e-6
+        data.bond_length = str_to_float(global_settings[0])
+        data.csa = str_to_float(global_settings[1])
 
         # The relaxation data (data type, frequency label, frequency, file 
name, dir, mol_name_col, res_num_col, res_name_col, spin_num_col, 
spin_name_col, data_col, error_col, sep).  These are the arguments to the 
relax_data.read() user function, please see the documentation for that 
function for more information.
         data.relax_data = []




Related Messages


Powered by MHonArc, Updated Wed May 19 03:40:02 2010