Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Jul 18, 2024
1 parent 9ea860b commit 41c4855
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions snudda/simulate/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,16 @@ def setup_parse_sim_info(self):
sec_id = density_data["section_id"]
sec_x = density_data["section_x"]

self.add_density_mechanism_recording(neuron_id=neuron_id,
sec_id=sec_id, sec_x=sec_x,
density_mechanism_name=density_mechanism_name,
variable_name=variable_name)
if not (len(neuron_id) == len(sec_id) == len(sec_x)):
raise ValueError(f"neuron_id, section_id and section_x must be lists of same length in experiment config.\n"
f"{record_info = }")

for nid, sid, sex in zip(neuron_id, sec_id, sec_x):

self.add_density_mechanism_recording(neuron_id=nid,
sec_id=sid, sec_x=sex,
density_mechanism_name=density_mechanism_name,
variable_name=variable_name)

# Do we need blocking call here, to make sure all neurons are setup
# before we try and connect them
Expand Down

0 comments on commit 41c4855

Please sign in to comment.