Shared.from_npz

classmethod Shared.from_npz(data, prefix: str = '', kw_edges=None, kw_nodes=None)[source]

Load Shared from .npz file.

Parameters
datastr or NpzFile

Filename as str or NpzFile.

prefixstr, default=””

Object data is stored with key = (prefix + internal_name).

kw_edgeskeyword arguments, optional

Further arguments passed to edge constructor.

kw_nodeskeyword arguments, optional

Further arguments passed to nodes constructor.

Returns
sShared

Object to be shared among network objects.