pynbody.array.shared.pack

Contents

pynbody.array.shared.pack#

pynbody.array.shared.pack(array, transfer_ownership=False)[source]#

Turn an array backed onto shared memory into something that can be passed between processes

Parameters:
Returns:

array_description – A description of the array that can be passed between processes (e.g. using pickle to turn it into a short string that can be sent via a pipe).

Return type:

object