Defined as:
sdynpy.core.sdynpy_geometry.id_mapModule:
sdynpy.core.sdynpy_geometrySource: GitHub
Signature¶
class sdynpy.id_map(from_ids, to_ids)Class defining mapping between two sets of id numbers
Methods¶
| Name | Summary |
|---|---|
__init__ | Initializes the id map |
inverse | Returns an inverse map, swapping the from and to ids. |
__init__¶
Source: GitHub
def sdynpy.id_map.__init__(self, from_ids, to_ids)Initializes the id map
Parameters¶
from_ids : np.ndarray Id numbers to map from
to_ids : np.ndarray Id numbers to map to
Returns¶
None.
inverse¶
Source: GitHub
def sdynpy.id_map.inverse(self)Returns an inverse map, swapping the from and to ids.
If duplicate id entries exist, they will be overwritten.
Returns¶
id_map
An id_map object with swapped from and to ids.