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

NeuronConnector class for connectivity of TreeNeurons #119

Closed
wants to merge 33 commits into from

Conversation

clbarnes
Copy link
Collaborator

@clbarnes clbarnes commented Jun 8, 2023

For converting a bag of neurons with possibly-intersecting connector nodes into a graph or adjacency matrix.

@schlegelp
Copy link
Collaborator

This looks useful! I guess the main use case are CATMAID neurons for now? Given that it requires meaningful connector IDs I would suggest making a note in the docstring. Perhaps even a sanity check that throws a warning if a neuron is added with sequential connector IDs?

I'd also add the NeuronConnector class to the API page.

@clbarnes
Copy link
Collaborator Author

Docs added, including documenting the fact that connector IDs need to be consistent between neurons, and raising a warning every time a connector ID seems to have more than one input. Needs some test data, though, I think.

@clbarnes clbarnes marked this pull request as ready for review July 28, 2023 11:40
@schlegelp
Copy link
Collaborator

Hi Chris. Sorry, I lost track of this. Happy to merge if ready?

stuarteberg and others added 7 commits October 23, 2023 16:03
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)
```
@clbarnes
Copy link
Collaborator Author

I've added an integration test so I'm happy that it works now. The merge log looks pretty whacky, though, it's claiming responsibility for a bunch of older commits, possibly because of a rebase.

@clbarnes
Copy link
Collaborator Author

Superceded by #133

@clbarnes clbarnes closed this Nov 14, 2023
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.

4 participants