dbbs-lab / bsb-core

The Brain Scaffold Builder
https://bsb.readthedocs.io
GNU General Public License v3.0
22 stars 16 forks source link

Debug/branch.versor with single-point branches #647

Closed igorcantele closed 2 years ago

igorcantele commented 2 years ago

Describe the work done

When a Branch contains only 1 point, branch.versor results in [NaN, NaN, NaN] (because it is [0,0,0]/0).
This caused max_displacement to return NaN.

List which issues this resolves:

627

(e.g. "closes #1, #2, #3")

Tasks