Package Bio :: Package NMR :: Module xpktools :: Class XpkEntry
[hide private]
[frames] | no frames]

Class XpkEntry

source code

object --+

Provide dictonary access to single entry from nmrview .xpk file.

This class is suited for handling single lines of non-header data from an nmrview .xpk file. This class provides methods for extracting data by the field name which is listed in the last line of the peaklist header.


xpkentry : str
The line from an nmrview .xpk file.
xpkheadline : str
The line from the header file that gives the names of the entries. This is typically the sixth line of the header, 1-origin.


fields : dict
Dictionary of fields where key is in header line, value is an entry. Variables are accessed by either their name in the header line as in self.field["H1.P"] will return the H1.P entry for example. self.field["entrynum"] returns the line number (1st field of line)
Instance Methods [hide private]
__init__(self, entry, headline)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, entry, headline)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)