Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.NMR.xpktools.XpkEntry Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 fields

Detailed Description

Definition at line 17 of file xpktools.py.


Constructor & Destructor Documentation

def Bio.NMR.xpktools.XpkEntry.__init__ (   self,
  entry,
  headline 
)

Definition at line 26 of file xpktools.py.

00026 
00027     def __init__(self,entry,headline):
00028        self.fields={}   # Holds all fields from input line in a dictionary
00029                         # keys are data labels from the .xpk header 
00030        datlist  = entry.split()
00031        headlist = headline.split()
00032 
00033        i=0  
00034        for i in range(len(datlist)-1):
00035          self.fields[headlist[i]]=datlist[i+1]
00036        i=i+1
00037 
00038        try:
00039            self.fields["entrynum"]=datlist[0]
00040        except IndexError, e:
00041            pass


Member Data Documentation

Definition at line 27 of file xpktools.py.


The documentation for this class was generated from the following file: