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

    navis.patch_cloudvolume¶

    navis.patch_cloudvolume()[source]¶

    Monkey patch cloud-volume to return navis neurons.

    This function must be run before initializing the CloudVolume! Adds new methods/parameters to CloudVolume.mesh.get and CloudVolume.skeleton.get. See examples for details.

    Examples

    >>> import navis
    >>> import cloudvolume as cv
    >>> # Monkey patch cloudvolume
    >>> navis.patch_cloudvolume()
    >>> # Connect to the public microns dataset
    >>> vol = cv.CloudVolume('precomputed://gs://iarpa_microns/minnie/minnie65/seg',
    ...                      use_https=True)
    >>> # Fetch as navis neuron using newly added method or ...
    >>> nl = vol.mesh.get_navis(864691135293126156, lod=3)
    >>> # ... alternatively use `as_navis` keyword argument in original method
    >>> nl = vol.mesh.get(864691135293126156, lod=3, as_navis=True)
    >>> type(nl)
    <class 'navis.core.neuronlist.NeuronList'>
    

    Back to top

    Source

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