Skip to content

Commit

Permalink
updated defaults to account for simulation config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Dec 10, 2023
1 parent 28956f0 commit f8be6ef
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions snudda/simulate/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def __init__(self,
output_file=None,
verbose=False,
log_file=None,
disable_synapses=False,
disable_gap_junctions=False,
disable_synapses=None,
disable_gap_junctions=None,
simulation_config=None):

"""
Expand Down Expand Up @@ -204,8 +204,15 @@ def __init__(self,
self.axon_speed = 0.8 # Tepper and Lee 2007, Wilson 1986, Wilson 1990
# refs taken from Damodaran et al 2013

self.disable_synapses = disable_synapses
self.disable_gap_junctions = disable_gap_junctions
if disable_synapses is None:
self.disable_synapses = False
else:
self.disable_synapses = disable_synapses

if disable_gap_junctions is None:
self.disable_gap_junctions = False
else:
self.disable_gap_junctions = disable_gap_junctions

self.synapse_type_lookup = {1: "GABA", 2: "AMPA_NMDA", 3: "GapJunction"}

Expand Down

0 comments on commit f8be6ef

Please sign in to comment.