Skip to content

Commit a05c4ad

Browse files
committed
Add position alias
1 parent e440eaa commit a05c4ad

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/miv_simulator/cells.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,12 @@ def __init__(
792792

793793
init_spike_detector(self)
794794

795+
def position(self, x: float, y: float, z: float) -> None:
796+
target = self.hoc_cell if self.hoc_cell is not None else self.cell_obj
797+
if target is None or not hasattr(target, "position"):
798+
raise RuntimeError("cell has no position()")
799+
target.position(x, y, z)
800+
795801
@property
796802
def gid(self) -> int:
797803
return self._gid

0 commit comments

Comments
 (0)