Package data_store :: 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
AlignTensorData instance
add_item(self, name)
Append a new AlignTensorData instance to the list.
source code
 
from_xml(self, align_tensor_super_node, file_version=1)
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__

add_item(self, name)

source code 

Append a new AlignTensorData instance to the list.

Parameters:
  • name (str) - The tensor ID string.
Returns: AlignTensorData instance
The tensor object.

from_xml(self, align_tensor_super_node, file_version=1)

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.
  • file_version (int) - The relax XML version of the XML file.

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.