Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Jul 22, 2024
1 parent 2d7e4ce commit 157384e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 529,610 deletions.
529,646 changes: 39 additions & 529,607 deletions examples/notebooks/neuromodulation/neuromodulation_example_anu_on_real_dspn.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/notebooks/neuromodulation/test-modulation.json
8 changes: 5 additions & 3 deletions snudda/simulate/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ def setup_neurons(self):
for ID in self.neuron_id:

name = self.network_info["neurons"][ID]["name"]
neuron_type = self.network_info["neurons"][ID]["type"]

region = self.network_info["neurons"][ID]["volume_id"]


Expand All @@ -579,9 +581,9 @@ def setup_neurons(self):
raise ValueError(f"Missing modulation file {modulation} "
f"for neuron {self.network_info['neurons'][ID]['name']}")

elif "modulation" in self.network_info["config"]["regions"][region]["neurons"][name]:
modulation = self.network_info["config"]["regions"][region]["neurons"][name]["modulation"]

elif "modulation" in self.network_info["config"]["regions"][region]["neurons"][neuron_type]:
modulation = self.network_info["config"]["regions"][region]["neurons"][neuron_type]["modulation"]
if not os.path.isfile(modulation):
modulation = os.path.join(neuron_path, modulation)

Expand Down

0 comments on commit 157384e

Please sign in to comment.