Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip plotting empty TreeNeuron in plotly #125

Merged
merged 2 commits into from
Oct 21, 2023
Merged

Conversation

floesche
Copy link
Contributor

Previously this would throw an AttributeError during plotly plotting in the skeleton2plotly method while trying to access non-existing neuron.nodes.

empty_skel = navis.TreeNeuron(None)
navis.plot3d(empty_skel)

This tiny fix now skips plotting this TreeNeuron.

Plotting an empty TreeNeuron previously threw an `AttributeError`:

```
empty_skel = navis.TreeNeuron(None)
navis.plot3d(empty_skel)
```
Plotting an empty TreeNeuron previously threw an `AttributeError`:

```
empty_skel = navis.TreeNeuron(None)
navis.plot3d(empty_skel)
```
@schlegelp schlegelp merged commit d712b18 into navis-org:master Oct 21, 2023
12 checks passed
@schlegelp
Copy link
Collaborator

Thanks, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants