Home | Trees | Indices | Help |
|
---|
|
object --+ | ligolw.Element --+ | ligolw.EmptyElement --+ | ligolw.Array --+ | Array
High-level Array element.
|
|||
ArrayName |
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
Name The "Name" attribute. |
|||
Inherited from Inherited from |
|
Initialize a new Array element.
|
Construct a LIGO Light Weight XML Array document subtree from a numpy array object. Example: >>> import numpy, sys >>> a = numpy.arange(12, dtype = "double") >>> a.shape = (4, 3) >>> Array.build(u"test", a).write(sys.stdout) # doctest: +NORMALIZE_WHITESPACE <Array Type="real_8" Name="test:array"> <Dim>3</Dim> <Dim>4</Dim> <Stream Delimiter=" " Type="Local"> 0 3 6 9 1 4 7 10 2 5 8 11 </Stream> </Array> |
Return a tuple of this array's dimensions. This is done by querying the Dim children. Note that once it has been created, it is also possible to examine an Array object's .array attribute directly, and doing that is much faster. |
Break internal references within the document tree rooted on this element to promote garbage collection.
|
|
NameThe "Name" attribute.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 12 00:34:18 2017 | http://epydoc.sourceforge.net |