From 5933b6f1314ab4def44650c7f488df7bdf3e5ebd Mon Sep 17 00:00:00 2001 From: Nora Abi Akar <nora.abiakar@gmail.com> Date: Thu, 23 Jul 2020 11:24:47 +0200 Subject: [PATCH] Fix python examples (#1096) Fix a Python example that was out of date. --- python/example/single_cell_swc.py | 2 +- python/flat_cell_builder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/example/single_cell_swc.py b/python/example/single_cell_swc.py index 1cf99623..e0ac6377 100644 --- a/python/example/single_cell_swc.py +++ b/python/example/single_cell_swc.py @@ -50,7 +50,7 @@ cell.place('stim_site', arbor.iclamp(8, 1, current=1)) cell.place('root', arbor.spike_detector(-10)) # Have one compartment between each sample point. -cell.compartments_on_samples() +cell.compartments_on_segments() # Make single cell model. m = arbor.single_cell_model(cell) diff --git a/python/flat_cell_builder.cpp b/python/flat_cell_builder.cpp index e2016773..56a0c65e 100644 --- a/python/flat_cell_builder.cpp +++ b/python/flat_cell_builder.cpp @@ -82,7 +82,7 @@ public: cable_distal_segs_.push_back(p); - return size()-1; + return cable_distal_segs_.size()-1; } void add_label(const char* name, const char* description) { -- GitLab