perturbopy.postproc.utils.memory.get_size
- perturbopy.postproc.utils.memory.get_size(array, name='array', dump=True)
Get size of an array in MB
- Parameters:
array (numpy array) – Array.
name – Name of array, optional.
dump – Specifies whether to print out or not the size
- Returns:
size – Size in MB.
- Return type:
float