mail[task #6847] The Bieri graphical user interface.


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

Header


Content

Posted by Michael Bieri on February 16, 2010 - 03:49:

Follow-up Comment #35, task #6847 (project relax):

Hi Edward

A couple of new patches:

relax_times:

Relaxation times are correctly read from data storage. 

-        data.relax_times = self.data.file_list[:i]
+        data.relax_times = self.data.relax_times[:i]

---------------------------------

execute_rx:

Unresolved Residues and PDB file will be read of data storage and transfered
to relax_fit.py.

@@ -264,6 +264,12 @@
         # The number of Monte Carlo simulations to be used for error
analysis at the end of the analysis.
         data.mc_num = 500
 
+        # Unresolved resiudes
+        data.unresolved = self.data.unresolved
+
+        # Structure File
+        data.structure_file = self.data.structure_file
+
         # Return the container.
         return data
 
@@ -376,7 +383,7 @@
         data = self.assemble_data()
 
         # Execute.
-        Relax_fit(seq_args=data.seq_args, file_names=data.file_names,
relax_times=data.relax_times, int_method=data.int_method,
mc_num=data.mc_num)
+        Relax_fit(seq_args=data.seq_args, file_names=data.file_names,
relax_times=data.relax_times, int_method=data.int_method, mc_num=data.mc_num,
pdb_file = data.structure_file, unresolved = data.unresolved)
 
 
     def link_data(self, data):


------------------------------------------------------------

settings_patch:

Option to load a sequence file was added bakc to the settings.

@@ -27,6 +27,7 @@
 import wx
 
 # relax GUI module imports.
+from filedialog import openfile
 from paths import IMAGE_PATH
 
 
@@ -51,7 +52,7 @@
 
 
 def load_sequence(self):
-    seqfile = openfile('Choose Sequence File', sys.path[-1],
'save.relaxGUI', 'relaxGUI files (*.relaxGUI)|*.relaxGUI|all files
(*.*)|*.*')
+    seqfile = openfile('Choose Sequence File', sys.path[-1], '', 'all files
(*.*)|*.*')
     return seqfile


------------------------------------------------------------

settings_read:

Stored settings are now synchronized with settings dialog for relax settings
and peak file settings.

@@ -1008,11 +1009,10 @@
 
 
     def param_file_setting(self, event): # set up parameter files
-        global file_setting # import global variable
-        tmp_setting = import_file_settings(file_setting)
+        tmp_setting = import_file_settings(ds.relax_gui.file_setting)
         if not tmp_setting == None:
             if question('Do you realy want to change import file
settings?'):
-                file_setting = tmp_setting
+                ds.relax_gui.file_setting = tmp_setting
         event.Skip()
 
 
@@ -1140,10 +1140,9 @@
 
     def reset_setting(self, event): #reset all settings
         global global_setting #import global variable
-        global file_setting # import global variable
         if question('Do you realy want to change relax settings?'):
-            global_setting = ['1.02 * 1e-10', '-172 * 1e-6', 'N', 'H', '11',
'newton', '500']
-            file_setting = ['0', '1', '2', '3', '4', '5', '6']
+            ds.relax_gui.global_setting = ['1.02 * 1e-10', '-172 * 1e-6',
'N', 'H', '11', 'newton', '500']
+            ds.relax_gui.file_setting = ['0', '1', '2', '3', '4', '5', '6']
 
 
     def sat_noe1(self, event):

@@ -1228,11 +1227,10 @@
 
 
     def settings(self, event): # set up for relax variables
-        global global_setting #import global variable
-        tmp_global = relax_global_settings(global_setting)
+        tmp_global = relax_global_settings(ds.relax_gui.global_setting)
         if not tmp_global == None:
             if question('Do you realy want to change relax settings?'):
-                global_setting = tmp_global
+                ds.relax_gui.global_setting = tmp_global
         event.Skip()
 
 
----------------------------------------------------------

relax_fit:

Several minor fixes for the relax_fit.py script allow running the analysis up
to minimisation.

Included:
Import of PDB file and unresolved residues

Pipe name was supplemented with date and time, so users can start multiple
calculations in the same session (avoiding 'pipe already exists') 

Added proton and hetero nucleus information to spectrum.read_intensities()

Replicated spectra are set correctly.

Only deselect spins if specified (needs more fixes!)

_______________________________________________________


I hope you like the commenting. I summarized the relax_fit patch, as there
are a lot of problems....
Let me know how to improve!

Cheers
Michael

(file #8122)
    _______________________________________________________

Additional Item Attachment:

File name: patches.zip                    Size:3 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/task/?6847>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/




Related Messages


Powered by MHonArc, Updated Wed Feb 17 05:20:50 2010