Author: bugman
Date: Mon Dec 8 16:10:47 2014
New Revision: 27017
URL: http://svn.gna.org/viewcvs/relax?rev=27017&view=rev
Log:
Fix for the __init__() method for the Nmrglue data store object.
The base method was incorrectly called. The nmrglue dic, udic, and data
objects are now expected
for data structure initialisation.
Modified:
branches/nmrglue/data_store/nmrglue.py
Modified: branches/nmrglue/data_store/nmrglue.py
URL:
http://svn.gna.org/viewcvs/relax/branches/nmrglue/data_store/nmrglue.py?rev=27017&r1=27016&r2=27017&view=diff
==============================================================================
--- branches/nmrglue/data_store/nmrglue.py (original)
+++ branches/nmrglue/data_store/nmrglue.py Mon Dec 8 16:10:47 2014
@@ -34,16 +34,24 @@
class Nmrglue(Element):
"""Container for the global GUI data structures."""
- def __init__(self):
- """Initialise the container info."""
+ def __init__(self, dic=None, udic=None, data=None):
+ """Initialise the container info.
+
+ @keyword dic: The dic structure from nmrglue.
+ @type dic: dict
+ @keyword udic: The dic structure from nmrglue.
+ @type udic: dict
+ @keyword data: The type of data depending on called function.
+ @type data: depend on function
+ """
# Execute the base class __init__() method.
- super(Gui, self).__init__()
+ super(Nmrglue, self).__init__()
# Initialise the data.
- self.dic = None
- self.udic = None
- self.data = None
+ self.dic = dic
+ self.udic = udic
+ self.data = data
def from_xml(self, nmrglue_node, file_version=1):
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits