u'latency_mean': 0.33,
                    u'latency_std': 0.18,
                    u'risetime_mean': 0.43,
                    u'risetime_std': 0.47,
                    u'space_clamp_correction_factor': 3.6,
                    u'synapse_type': u'Excitatory, depressing',
                    u'u_mean': 0.19,
                    u'u_std': 0.23
                }
f.close()
j.clear()


# get out stats for synapses and connections, temporary
syn_param_stats = get_syn_params(PSET.populationParameters['m_type'],
                                 PSET.populationParameters['me_type'],
                                 pathways_physiology, mtype_map, synapses_tsv)

del synapses_tsv # not needed anymore. 


###########################################################################
# Set up main connection parameters used by Network class instance methods
############################################################################

# Main connection parameters between pre and post-synaptic populations organized as
# dictionary of parameter lists between pre and postsynaptic populations:
if PSET.fully_connected:
    connprob = [[1]*PSET.populationParameters.size]*PSET.populationParameters.size # fully connected network (no selfconnections)
else:
    connprob = get_params(PSET.populationParameters['m_type'], pathways_anatomy,
                    u'gsyn_std': 0.11,
                    u'latency_mean': 0.33,
                    u'latency_std': 0.18,
                    u'risetime_mean': 0.43,
                    u'risetime_std': 0.47,
                    u'space_clamp_correction_factor': 3.6,
                    u'synapse_type': u'Excitatory, depressing',
                    u'u_mean': 0.19,
                    u'u_std': 0.23
                }
f.close()
j.clear()

# get out stats for synapses and connections, temporary
syn_param_stats = get_syn_params(PSET.populationParameters['m_type'],
                                 PSET.populationParameters['me_type'],
                                 pathways_physiology, mtype_map, synapses_tsv)

del synapses_tsv  # not needed anymore.

###########################################################################
# Set up main connection parameters used by Network class instance methods
############################################################################

# Main connection parameters between pre and post-synaptic populations organized as
# dictionary of parameter lists between pre and postsynaptic populations:
if PSET.fully_connected:
    connprob = [
        [1] * PSET.populationParameters.size
    ] * PSET.populationParameters.size  # fully connected network (no selfconnections)
else: