helios.layouts.ipc_tools¶
Inter-Process communication tools
This Module provides abstract classes and objects to deal with inter-process communication.
References
[1]“Python GSoC - Post #3: Network layout algorithms using IPC - demvessias’s Blog.” blogs.python-gsoc.org/en/demvessiass-blog/post-3 (accessed Jul. 24, 2021).
List of Objects¶
GenericArrayBufferManager¶
-
class
helios.layouts.ipc_tools.
GenericArrayBufferManager
(dimension, dtype='float64', num_elements=None)[source]¶ Bases:
abc.ABC
This implements a abstract (generic) ArrayBufferManager.
The GenericArrayBufferManager is used for example to share the positions, edges and weights between different process.
SharedMemArrayManager¶
Bases:
helios.layouts.ipc_tools.GenericArrayBufferManager
An implementation of a GenericArrayBufferManager using SharedMemory
- Parameters
dimension (int) – number of columns
dtype (str) – type of the ndarray
data (ndarray) – bi-dimensional array
buffer_name (str) – buffer_name, if you pass that, then this Obj. will try to load the memory resource
num_elements (int, optional) – In MacOs a shared memory resource can be created with a different number of elements then the original data