mailr4560 - in /branches/N_state_model/prompt: interpreter.py n_state_model.py


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

Header


Content

Posted by edward on January 09, 2008 - 16:57:
Author: bugman
Date: Wed Jan  9 16:57:28 2008
New Revision: 4560

URL: http://svn.gna.org/viewcvs/relax?rev=4560&view=rev
Log:
Added the n_state_model user function class.  No functions are implemented 
yet.


Added:
    branches/N_state_model/prompt/n_state_model.py
Modified:
    branches/N_state_model/prompt/interpreter.py

Modified: branches/N_state_model/prompt/interpreter.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/prompt/interpreter.py?rev=4560&r1=4559&r2=4560&view=diff
==============================================================================
--- branches/N_state_model/prompt/interpreter.py (original)
+++ branches/N_state_model/prompt/interpreter.py Wed Jan  9 16:57:28 2008
@@ -59,6 +59,7 @@
 from molmol import Molmol
 from molecule import Molecule
 from monte_carlo import Monte_carlo
+from n_state_model import N_state_model
 from noe import Noe
 from palmer import Palmer
 from residue import Residue
@@ -139,6 +140,7 @@
         self._Molmol = Molmol(relax)
         self._Molecule = Molecule(relax)
         self._Monte_carlo = Monte_carlo(relax)
+        self._N_state_model = N_state_model(relax)
         self._Noe = Noe(relax)
         self._Palmer = Palmer(relax)
         self._Residue = Residue(relax)
@@ -204,6 +206,7 @@
         molmol = self._Molmol
         molecule = self._Molecule
         monte_carlo = self._Monte_carlo
+        n_state_model = self._N_state_model
         noe = self._Noe
         palmer = self._Palmer
         structure = self._Structure

Added: branches/N_state_model/prompt/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/prompt/n_state_model.py?rev=4560&view=auto
==============================================================================
--- branches/N_state_model/prompt/n_state_model.py (added)
+++ branches/N_state_model/prompt/n_state_model.py Wed Jan  9 16:57:28 2008
@@ -1,0 +1,45 @@
+###############################################################################
+#                                                                            
 #
+# Copyright (C) 2008 Edward d'Auvergne                                       
 #
+#                                                                            
 #
+# 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  
 #
+#                                                                            
 #
+###############################################################################
+
+# Python module imports.
+import sys
+
+# relax module imports.
+import help
+#from generic_fns import n_state_model
+from relax_errors import RelaxError, RelaxBinError, RelaxFloatError, 
RelaxIntError, RelaxNoneStrError, RelaxNumTupleError, RelaxStrError
+
+
+class N_state_model:
+    def __init__(self, relax):
+        # Help.
+        self.__relax_help__ = \
+        """Class for manipulating the alignment tensor."""
+
+        # 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
+
+
+




Related Messages


Powered by MHonArc, Updated Wed Jan 09 17:20:16 2008