setup_file_dest(params, clearDestination=True)


###############################################################################
# MAIN simulation procedure
###############################################################################

#tic toc
tic = time()

######## Perform network simulation ############################################

##initiate nest simulation with only the point neuron network parameter class
networkParams = point_neuron_network_params()
nest_simulation.sli_run(parameters=networkParams,
                       fname='microcircuit.sli',
                       verbosity='M_WARNING')

#preprocess the gdf files containing spiking output, voltages, weighted and
#spatial input spikes and currents:
nest_output_processing.merge_gdf(networkParams,
                            raw_label=networkParams.spike_detector_label,
                            file_type='gdf',
                            fileprefix=params.networkSimParams['label'])
nest_output_processing.merge_gdf(networkParams,
                            raw_label=networkParams.voltmeter_label,
                            file_type='dat',
                            fileprefix='voltages')
nest_output_processing.merge_gdf(networkParams,
                            raw_label=networkParams.weighted_input_spikes_label,
                            file_type='dat',
setup_file_dest(params, clearDestination=True)


###############################################################################
# MAIN simulation procedure
###############################################################################

#tic toc
tic = time()

######## Perform network simulation ############################################

##initiate nest simulation with only the point neuron network parameter class
networkParams = point_neuron_network_params()
nest_simulation.sli_run(parameters=networkParams,
                       fname='microcircuit.sli',
                       verbosity='M_WARNING')

#preprocess the gdf files containing spiking output, voltages, weighted and
#spatial input spikes and currents:
nest_output_processing.merge_gdf(networkParams,
                            raw_label=networkParams.spike_detector_label,
                            file_type='gdf',
                            fileprefix=params.networkSimParams['label'])
nest_output_processing.merge_gdf(networkParams,
                            raw_label=networkParams.voltmeter_label,
                            file_type='dat',
                            fileprefix='voltages')
nest_output_processing.merge_gdf(networkParams,
                            raw_label=networkParams.weighted_input_spikes_label,
                            file_type='dat',