From f8be6ef30f2cf58804ee04b9aa0ad5a622e38034 Mon Sep 17 00:00:00 2001 From: Johannes Hjorth Date: Sun, 10 Dec 2023 21:23:38 +0100 Subject: [PATCH] updated defaults to account for simulation config --- snudda/simulate/simulate.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/snudda/simulate/simulate.py b/snudda/simulate/simulate.py index d77ce9b74..8784cac0c 100644 --- a/snudda/simulate/simulate.py +++ b/snudda/simulate/simulate.py @@ -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): """ @@ -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"}