Version 1.7.0
With this release we integrate navis-fastcore
into navis
which contains a number of core functions re-implemented in Rust 🎉
For now this is a soft dependency but if you pip install navis-fastcore
, navis
will automatically use these improved functions under the hood, which can speed things up by up to 20x 🚀
In other news:
Breaking
- plotting functions: dropped the
cluster
parameter in favour of an improvedcolor_by
logic (see below)
New
- new method
navis.NeuronList.add_metadata
to quickly add metadata to neurons
Improved
navis.find_soma
andnavis.graph.neuron2nx
(used under the hood) are now much faster- all I/O functions, such as
navis.read_swc
, now show which file caused an error (if any); original filenames are tracked as.file
property navis.NeuronList
will only search the first 100 neurons for autocompletion to avoid freezing with very large lists- plotting functions:
color_by
now accepts either a list of labels (one per neuron) or the name of a neuron property navis.subset_neuron
is now faster and more memory efficient when subsetting meshesnavis.TreeNeuron.cable_length
is now faster
Fixed
- all I/O functions such as
navis.read_swc
now ignore hidden files (filename starts with._
) instead of breaking navis.read_swc
now actually uses the soma label (if present) to set the soma node- fixed a bug in plotting when using vertex colors
- fixed the progress bar in
navis.interfaces.neuprint.fetch_mesh_neuron
- fixed a bug in
navis.synblast
that caused multiprocessing to fail (pickling issue withpykdtree
) navis.interfaces.neuprint.fetch_mesh_neuron
will now ignore thelod
parameter if the data source does not
support it instead of breaking- fixed a number of depcrecation warnings in the codebase