Package data :: Module align_tensor :: Class AlignTensorList
[hide private]
[frames] | no frames]

Class AlignTensorList

source code


List type data container for holding all the alignment tensors.

The elements of the list should be AlignTensorData instances.

Instance Methods [hide private]
 
__repr__(self)
Replacement function for displaying an instance of this class.
source code
 
add_item(self, name)
Function for appending a new AlignTensorData instance to the list.
source code
 
from_xml(self, align_tensor_super_node)
Recreate the alignment tensor data structure from the XML alignment tensor node.
source code
 
names(self)
Return a list of the alignment tensor names.
source code
 
to_xml(self, doc, element)
Create an XML element for the alignment tensors.
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __init__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__repr__(self)
(Representation operator)

source code 

Replacement function for displaying an instance of this class.

Overrides: object.__repr__

from_xml(self, align_tensor_super_node)

source code 

Recreate the alignment tensor data structure from the XML alignment tensor node.

Parameters:
  • align_tensor_super_node (xml.dom.minicompat.Element instance) - The alignment tensor XML nodes.

to_xml(self, doc, element)

source code 

Create an XML element for the alignment tensors.

Parameters:
  • doc (xml.dom.minidom.Document instance) - The XML document object.
  • element (XML element object) - The element to add the alignment tensors XML element to.