navis 1.4.0
  • Install
  • Quickstart
  • Tutorials
  • API
  • Changelog
  • Github
  • Ecosystem
  • Site
    • Page
        • navis.BaseNeuron.memory_usage
          • BaseNeuron.memory_usage()

    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

    Back to top

    Source

    © Copyright 2018, Philipp Schlegel.
    Created using Sphinx 5.3.0.