diff --git a/doc/whats_new.rst b/doc/whats_new.rst index a8542554c..de686b49e 100644 --- a/doc/whats_new.rst +++ b/doc/whats_new.rst @@ -27,7 +27,7 @@ Changelog Bug ~~~ -- Remove repositioning of cells which moves x and z coordinates of all sections slightly, by `Mainak Jas`_ in `#314 `_ +- Remove rounding error caused by repositioning of NEURON cell sections, by `Mainak Jas`_ and `Ryan Thorpe`_ in `#314 `_ API ~~~ diff --git a/hnn_core/cell.py b/hnn_core/cell.py index dfbe74c76..d1d6dff2a 100644 --- a/hnn_core/cell.py +++ b/hnn_core/cell.py @@ -251,6 +251,8 @@ def _create_sections(self, p_secs, topology): whole, but convention is followed in this function ease use of gui. """ # distance from initial to final root postion + # Resolve: y-coordinate here corresponds to the z-coordinate in + # self.pos[2] dx = self.pos[0] - self.p_secs['soma']['sec_pts'][0][0] dy = self.pos[2] - self.p_secs['soma']['sec_pts'][0][1] dz = self.pos[1] - self.p_secs['soma']['sec_pts'][0][2]