Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit f9ac053

Browse files
author
Jaquier Aurélien Tristan
committed
arbor-related code improvement
1 parent 5778cd5 commit f9ac053

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bluepyopt/ephys/morphologies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def load(morpho_filename, replace_axon):
308308
elif morpho_suffix == '.swc':
309309
morpho = arbor.load_swc_arbor(morpho_filename)
310310
# turn loaded_morphology into morphology type
311-
morpho = arbor.morphology(morpho.segment_tree)
311+
morpho = morpho.morphology
312312
elif morpho_suffix == '.asc':
313313
morpho = arbor.load_asc(morpho_filename).morphology
314314
else:

bluepyopt/ephys/protocols.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def instantiate_recordings(self, cell_model, use_labels=False):
636636
"""Instantiate recordings"""
637637

638638
# Attach voltage probe sampling at 10 kHz (every 0.1 ms)
639-
for _, rec in enumerate(self.recordings):
639+
for i, rec in enumerate(self.recordings):
640640
# alternatively arbor.cable_probe_membrane_voltage
641641
arb_loc = rec.location.acc_label()
642642
if isinstance(arb_loc, list) and len(arb_loc) != 1:
@@ -653,7 +653,7 @@ def instantiate_recordings(self, cell_model, use_labels=False):
653653

654654
cell_model.probe('voltage',
655655
arb_loc.ref if use_labels else arb_loc.loc,
656-
"0", # tag: default is '0'
656+
f"probe-{i}",
657657
# frequency could be a parameter
658658
frequency=10 * arbor.units.kHz)
659659

0 commit comments

Comments
 (0)