navis.BaseNeuron.memory_usage¶
- BaseNeuron.memory_usage(deep=False, estimate=False)[source]¶
Return estimated memory usage of this neuron.
Works by going over attached data (numpy arrays and pandas DataFrames such as vertices, nodes, etc) and summing up their size in memory.
- Parameters:
deep (bool) – Passed to pandas DataFrames. If True will also inspect memory footprint of object dtypes.
estimate (bool) – If True, we will only estimate the size. This is considerably faster but will slightly underestimate the memory usage.
- Returns:
Memory usage in bytes.
- Return type:
int