traveler.core.omx.numpy_arrays_from_shared_memory#

traveler.core.omx.numpy_arrays_from_shared_memory(reconstruction)[source]#

Copy NumPy arrays from serialized shared-memory instructions.

Parameters:

reconstruction (bytes) – Serialized reconstruction instructions.

Returns:

Independent arrays that remain valid after the shared-memory handles are closed. The process that created the allocations remains responsible for unlinking them.

Return type:

dict[str, numpy.ndarray]