You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When get_sample_pts_euclidean samples points along an SWC edge, the interpolation appears to place each point at the mirrored location on that edge. In a simple 3-node chain, this changes the actual distances from the root returned by the sampler, not just their order.
Thanks so much for catching this. You are right that the interpolation was inverted and I agree with your fix. It should not affect morphological distances substantially, since GW does not require uniform sampling, but it is more accurate.
Please feel free to open a pull request, and I will merge it. Alternatively, if you prefer that we implement the fix on our end, just let me know.
Thank you very much for taking a look!
In our hands, this had very little effect on the resulting intra-cellular distance matrices, but I just wanted to bring it up in case it helps make the implementation consistent with the documented behavior.
I've opened a pull request with a proposed fix: #23.
Overall, this CAJAL package is very inspiring and well implemented, and we have learned a great deal from it. Thank you to your group for this nice contribution to the field!
Activity
pcamara commentedon Mar 19, 2026
Hi @tatsuookubo ,
Thanks so much for catching this. You are right that the interpolation was inverted and I agree with your fix. It should not affect morphological distances substantially, since GW does not require uniform sampling, but it is more accurate.
Please feel free to open a pull request, and I will merge it. Alternatively, if you prefer that we implement the fix on our end, just let me know.
tatsuookubo commentedon Mar 23, 2026
Thank you very much for taking a look!
In our hands, this had very little effect on the resulting intra-cellular distance matrices, but I just wanted to bring it up in case it helps make the implementation consistent with the documented behavior.
I've opened a pull request with a proposed fix: #23.
Overall, this CAJAL package is very inspiring and well implemented, and we have learned a great deal from it. Thank you to your group for this nice contribution to the field!