DemandVector.from_npz

classmethod DemandVector.from_npz(data, shared=None, prefix: str = '', **kwargs) paminco.net.demand.DemandVector[source]

Construct object from .npz file.

Parameters
sharedShared

Shared object for network classes.

datastr or NpzFile

Filename as str or NpzFile.

prefixstr, default=””

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

Returns
obj

Object.

See also

numpy.lib.npyio.NpzFile