mailr8244 - in /branches/relax_disp: prompt/relax_disp.py test_suite/shared_data/relax_disp/


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

Header


Content

Posted by sebastien . morin . 1 on January 06, 2009 - 22:27:
Author: semor
Date: Tue Jan  6 22:27:20 2009
New Revision: 8244

URL: http://svn.gna.org/viewcvs/relax?rev=8244&view=rev
Log:
Reverted revision 8231.

The command used was:
svn merge -r8231:8230 .

This follows a message by Edward concerning the copying of existing code 
within relax:
https://mail.gna.org/public/relax-devel/2009-01/msg00006.html
(Message-id: <7f080ed10901061301w4fd295feu5a2af1a157153064@xxxxxxxxxxxxxx>)


Removed:
    branches/relax_disp/prompt/relax_disp.py
    branches/relax_disp/test_suite/shared_data/relax_disp/

Removed: branches/relax_disp/prompt/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/prompt/relax_disp.py?rev=8243&view=auto
==============================================================================
--- branches/relax_disp/prompt/relax_disp.py (original)
+++ branches/relax_disp/prompt/relax_disp.py (removed)
@@ -1,122 +1,0 @@
-###############################################################################
-#                                                                            
 #
-# Copyright (C) 2004-2008 Edward d'Auvergne                                  
 #
-# Copyright (C) 2009 Sebastien Morin
-#                                                                            
 #
-# This file is part of the program relax.                                    
 #
-#                                                                            
 #
-# relax is free software; you can redistribute it and/or modify              
 #
-# it under the terms of the GNU General Public License as published by       
 #
-# the Free Software Foundation; either version 2 of the License, or          
 #
-# (at your option) any later version.                                        
 #
-#                                                                            
 #
-# relax is distributed in the hope that it will be useful,                   
 #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of             
 #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              
 #
-# GNU General Public License for more details.                               
 #
-#                                                                            
 #
-# You should have received a copy of the GNU General Public License          
 #
-# along with relax; if not, write to the Free Software                       
 #
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
 #
-#                                                                            
 #
-###############################################################################
-
-# Module docstring.
-"""Module containing the 'relax_disp' user function class."""
-__docformat__ = 'plaintext'
-
-# Python module imports.
-import sys
-
-# relax module imports.
-import help
-from relax_errors import RelaxNumError, RelaxStrError
-from specific_fns.setup import relax_disp_obj
-
-
-class Relax_disp:
-    def __init__(self, relax):
-        # Help.
-        self.__relax_help__ = \
-        """Class for relaxation dispersion curve fitting."""
-
-        # Add the generic help string.
-        self.__relax_help__ = self.__relax_help__ + "\n" + 
help.relax_class_help
-
-        # Place relax in the class namespace.
-        self.__relax__ = relax
-
-
-#    def relax_time(self, time=0.0, spectrum_id=None):
-#        """Function for setting the relaxation time period associated with 
each spectrum.
-#
-#        Keyword Arguments
-#        ~~~~~~~~~~~~~~~~~
-#
-#        time:  The time, in seconds, of the relaxation period.
-#
-#        spectrum_id:  The spectrum identification string.
-#
-#
-#        Description
-#        ~~~~~~~~~~~
-#
-#        Peak intensities should be loaded before calling this user function 
via the
-#        'spectrum.read_intensities()' user function.  The intensity values 
will then be associated
-#        with a spectrum identifier.  To associate each spectrum identifier 
with a time point in the
-#        relaxation curve prior to optimisation, this user function should 
be called.
-#        """
-#
-#        # Function intro text.
-#        if self.__relax__.interpreter.intro:
-#            text = sys.ps3 + "relax_disp.relax_time("
-#            text = text + "time=" + `time`
-#            text = text + ", spectrum_id=" + `spectrum_id` + ")"
-#            print text
-#
-#        # The relaxation time.
-#        if type(time) != int and type(time) != float:
-#            raise RelaxNumError, ('relaxation time', time)
-#
-#        # The spectrum identification string.
-#        if type(spectrum_id) != str:
-#            raise RelaxStrError, ('spectrum identification string', 
spectrum_id)
-#
-#        # Execute the functional code.
-#        relax_disp_obj.relax_time(time=time, spectrum_id=spectrum_id)
-#
-#
-#    def select_model(self, model='exp'):
-#        """Function for the selection of the relaxation curve type.
-#
-#        Keyword Arguments
-#        ~~~~~~~~~~~~~~~~~
-#
-#        model:  The type of relaxation dispersion curve to fit.
-#
-#
-#        The preset models
-#        ~~~~~~~~~~~~~~~~~
-#
-#        The supported relaxation experiments include the default two 
parameter exponential fit,
-#        selected by setting the 'fit_type' argument to 'exp', and the three 
parameter inversion
-#        recovery experiment in which the peak intensity limit is a non-zero 
value, selected by
-#        setting the argument to 'inv'.
-#
-#        The parameters of these two models are
-#            'exp': [Rx, I0],
-#            'inv': [Rx, I0, Iinf].
-#        """
-#
-#        # Function intro text.
-#        if self.__relax__.interpreter.intro:
-#            text = sys.ps3 + "relax_disp.select_model("
-#            text = text + "model=" + `model` + ")"
-#            print text
-#
-#        # The model argument.
-#        if type(model) != str:
-#            raise RelaxStrError, ('model', model)
-#
-#        # Execute the functional code.
-#        relax_disp_obj.select_model(model=model)




Related Messages


Powered by MHonArc, Updated Tue Jan 06 22:40:03 2009