berenslab / MorphoPy

GNU General Public License v3.0
34 stars 11 forks source link

Automatically relabel node ids when loading a file in? #116

Closed Visdoom closed 1 year ago

Visdoom commented 3 years ago

When a file is read in we do some processing steps (like removing duplicate points) that might lead to a inconsistency between node labels and actual number of nodes in the neuron tree object. E.g. in this case we can have a node id that is higher than the number of points we have. This can be confusing to the user. Should we call the function rename_nodes() in the end of the constructor? This would relabel all nodes consecutively. However, then the node ids do not necessarily correspond to the ones in the original swc file any more which in turn can lead to confusion.

I'd like your opinion on that. Add a paragraph about it to the repo? Do the 'hidden' relabeling of nodes? Do nothing?

huangziwei commented 1 year ago

@Visdoom Hi Sophie, are you still planning to do this?

huangziwei commented 1 year ago

Close due to inactive. But feel free to reopen it whenever you see fit.