Closed kuanawanda closed 3 years ago
Unfortunately, it's not as easy as reindexing since we really don't expect missing indices there. That being said: I should remove pymaid.cable_overlap
since it has the exact same functionality as navis.cable_overlap
.
navis.cable_overlap
was indeed broken but has already been fixed on Github. So if you uninstall your navis and re-install from Github you should be able to use that function:
$ pip3 uninstall navis -y
$ pip3 install git+git://github.com/schlegelp/navis@master
If that still doesn't cut it, please share a minimal working example and the versions of navis and pymaid on your machine.
Thanks @schlegelp! Updating to the new version of navis fixed both issues for me.
This seems to be a result of changes in how Pandas deals with indexing. As suggested in the link above, the following edits in pymaid.connectivity seems to fix this issue (lines 347-348).
I also tried using navis.cable_overlap instead but it seems that this function requires neuron.dps attribute to exist. Currently, it doesn't seem like CatmaidNeuron objects pulled from pymaid.get_neuron have this attribute.