mailr27003 - /branches/nmrglue/lib/spectrum/objects.py


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

Header


Content

Posted by tlinnet on December 07, 2014 - 23:42:
Author: tlinnet
Date: Sun Dec  7 23:42:58 2014
New Revision: 27003

URL: http://svn.gna.org/viewcvs/relax?rev=27003&view=rev
Log:
Removing the Nmrglue_data() class object type.

relax cannot handle storing class object types.

Task #7873 (https://gna.org/task/index.php?7873): Write wrapper function to 
nmrglue, to read .ft2 files and process them.
Homepage: http://www.nmrglue.com/
Link to nmrglue discussion: 
https://groups.google.com/forum/#!forum/nmrglue-discuss
The code is develop at Github: https://github.com/jjhelmus/nmrglue/
Documentation: http://nmrglue.readthedocs.org/en/latest/index.html

Modified:
    branches/nmrglue/lib/spectrum/objects.py

Modified: branches/nmrglue/lib/spectrum/objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/nmrglue/lib/spectrum/objects.py?rev=27003&r1=27002&r2=27003&view=diff
==============================================================================
--- branches/nmrglue/lib/spectrum/objects.py    (original)
+++ branches/nmrglue/lib/spectrum/objects.py    Sun Dec  7 23:42:58 2014
@@ -31,38 +31,6 @@
 
 class Assignment:
     """A special container for a single assignment in a peak list."""
-
-
-class Nmrglue_data(list):
-    """The object used to represent a nmrglue data."""
-
-    def __init__(self):
-        """Set up the object."""
-
-
-    def add(self, file_path=None, dic=None, udic=None, data=None):
-        """Add a nmrglue data element.
-
-
-        @keyword file_path:         The path to the spectrum.
-        @type file_path:            str
-        @keyword dic:               The data dictionary.
-        @type dic:                  dic
-        @keyword udic:              The universal data dictionary.
-        @type udic:                 dic
-        @keyword data:              The data as numpy array.
-        @type data:                 numpy array
-        """
-
-        # Add a new element.
-        self.append(Assignment())
-
-        # Store the data.
-        assign = self[-1]
-        assign.file_path = file_path
-        assign.dic = dic
-        assign.udic = udic
-        assign.data = data
 
 
 class Peak_list(list):




Related Messages


Powered by MHonArc, Updated Mon Dec 08 00:00:02 2014