Defined as:
sdynpy.core.sdynpy_geometry.traceline_arrayModule:
sdynpy.core.sdynpy_geometrySource: GitHub
Signature¶
def sdynpy.traceline_array(id=1, description='', color=1, connectivity=None, structured_array=None)Creates an array that specifies tracelines in the geometry
Creates an array of tracelines that specify connectivity of sensors in a test or analysis. Traceline arrays can be created using a numpy structured array or individual arrays for each attribute. Multidimensional arrays can be used.
Parameters¶
id : ndarray Integer array corresponding to the id of the node. Input will be cast to an integer (i.e. 2.0 -> 2, 1.9 -> 1)
Description : ndarray Traceline name
color : ndarray color of the elements as integers
connectivity : ndarray An object array of iterables defining the connectivity for each traceline.
structured_array : ndarray (structured) Alternatively to the individual attributes, a single numpy structured array can be passed, which should have the same name as the inputs to the function listed above.
Returns¶
traceline_array : TracelineArray