Skip to content

Commit

Permalink
Updated neuromodulation code to also handle simulation_config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Dec 9, 2023
1 parent f84aa77 commit 91a671b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snudda/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ def simulate(self,
disable_gap_junctions=disable_gj,
disable_synapses=disable_synapses,
log_file=log_file,
simulation_config=simulation_config,
verbose=verbose)

sim.setup()
Expand All @@ -714,6 +715,7 @@ def simulate(self,
disable_synapses=disable_synapses,
log_file=log_file,
neuromodulator_description=neuromod_dict,
simulation_config=simulation_config,
verbose=verbose)

sim.setup()
Expand Down
2 changes: 2 additions & 0 deletions snudda/neuromodulation/neuromodulation_synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def setup(self):
self.check_memory_status()
self.pc.barrier()

self.setup_parse_sim_info()

def neuromodulation_setup(self):

# This loops through all the synapses, and connects the relevant ones
Expand Down
4 changes: 4 additions & 0 deletions snudda/simulate/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ def setup(self):
self.check_memory_status()
self.pc.barrier()

self.setup_parse_sim_info()

def setup_parse_sim_info(self):

if self.sim_info:

if "record_all_soma" in self.sim_info and self.sim_info["record_all_soma"]:
Expand Down

0 comments on commit 91a671b

Please sign in to comment.