Defined as:
sdynpy.core.sdynpy_geometry.TracelineArrayModule:
sdynpy.core.sdynpy_geometrySource: GitHub
Parent:
sdynpy.SdynpyArrayParent:
numpy.ndarray
Signature¶
class sdynpy.TracelineArray(shape, buffer=None, offset=0, strides=None, order=None)Traceline information array
Use the traceline_array helper function to create the array.
Attributes¶
| Name | Summary |
|---|---|
data_dtype | Built-in mutable sequence. |
data_dtype¶
Methods¶
| Name | Summary |
|---|---|
from_unv | Load TracelineArrays from universal file data from read_unv |
reduce | Keep only tracelines fully contain nodes in node_list |
remove | Removes tracelines with id numbers in traceline_list |
from_unv¶
Source: GitHub
def sdynpy.TracelineArray.from_unv(unv_data_dict, combine=True)Load TracelineArrays from universal file data from read_unv
Parameters¶
unv_data_dict : dict Dictionary containing data from read_unv
combine : bool, optional If True, return as a single TracelineArray object
Returns¶
output_arrays : TracelineArray Tracelines read from unv
reduce¶
Source: GitHub
def sdynpy.TracelineArray.reduce(self, node_list)Keep only tracelines fully contain nodes in node_list
Parameters¶
node_list : iterable Iterable containing nodes to keep.
Returns¶
TracelineArray
TracelineArray containing lines that contain only nodes in node_list.
remove¶
Source: GitHub
def sdynpy.TracelineArray.remove(self, traceline_list)Removes tracelines with id numbers in traceline_list
Parameters¶
traceline_list : interable Iterable containing tracelines to discard.
Returns¶
TracelineArray
TracelineArray containing tracelines with id numbers not it
traceline_list.