mailRe: r27834 - /trunk/auto_analyses/relax_disp_repeat_cpmg.py


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

Header


Content

Posted by Edward d'Auvergne on June 08, 2015 - 16:09:
On 27 May 2015 at 03:09,  <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet
Date: Wed May 27 03:09:35 2015
New Revision: 27834

URL: http://svn.gna.org/viewcvs/relax?rev=27834&view=rev
Log:
Wrote a method to store parameter data and dispersion curves, for the 
protocol of repeated analysis.

This is to prepare for analysis in other programs.
The method loops throug the data pipes, and write the data out.

It then write a bash script, that will concatenate the data in an matrix 
array style, for reading and processing in other programs.

Task #7826 (https://gna.org/task/?7826): Write an python class for the 
repeated analysis of dispersion data.

Modified:
    trunk/auto_analyses/relax_disp_repeat_cpmg.py

Modified: trunk/auto_analyses/relax_disp_repeat_cpmg.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/auto_analyses/relax_disp_repeat_cpmg.py?rev=27834&r1=27833&r2=27834&view=diff
==============================================================================
--- trunk/auto_analyses/relax_disp_repeat_cpmg.py       (original)
+++ trunk/auto_analyses/relax_disp_repeat_cpmg.py       Wed May 27 03:09:35 
2015
@@ -32,10 +32,11 @@
 from copy import deepcopy
 from datetime import datetime
 from glob import glob
-from os import F_OK, access, getcwd, sep
+from os import F_OK, access, chmod, getcwd, sep
 from numpy import any, asarray, arange, concatenate, max, mean, min, sqrt, 
std, sum
 if dep_check.scipy_module:
     from scipy.stats import pearsonr
+from stat import S_IRWXU, S_IRGRP, S_IROTH
 import sys
 from warnings import warn

@@ -48,7 +49,7 @@
 from pipe_control.mol_res_spin import display_spin, generate_spin_string, 
return_spin, spin_loop
 from pipe_control import pipes
 from prompt.interpreter import Interpreter
-from specific_analyses.relax_disp.data import generate_r20_key, 
has_exponential_exp_type, is_r1_optimised, loop_exp_frq_offset, 
loop_exp_frq_offset_point, return_param_key_from_data
+from specific_analyses.relax_disp.data import generate_r20_key, 
has_exponential_exp_type, has_cpmg_exp_type, is_r1_optimised, 
loop_exp_frq_offset, loop_exp_frq_offset_point, return_param_key_from_data
 from status import Status; status = Status()

 if dep_check.matplotlib_module:
@@ -2665,6 +2666,149 @@
             plt.show()


+    def write_results(self, method=None, model=None, analysis=None, 
list_glob_ini=None, selection=None):
+
+        for glob_ini in list_glob_ini:

Hi Troels,

I'm now back from holidays and have time to look at your changes and
proposals.  For future maintenance, I would highly recommend adding a
short docstring describing the intent of each of these methods.  That
will allow others to check that any new additions by future authors
actually fit into your method, or if they belong elsewhere.  It will
allow the code to be kept clean and well organised.  The text from the
commit message would be good for this.  The write_convert_file()
method as well would benefit with the text "Write a bash script, that
will concatenate the data in an matrix array style, for reading and
processing in other programs.".

Cheers,

Edward



Related Messages


Powered by MHonArc, Updated Mon Jun 08 18:40:06 2015