Exemple #1
0
    def __init__(self):
        Simulation.__init__(self)
        # Used by the super save and load function.
        self.set_name('sweep')

        # Used by the custom simulate and plot function.
        self.run_param['pptype'] = 'IClamp'
        self.run_param['delay'] = 0
        self.run_param['duration'] = 500
        self.run_param['amp_start'] = 0.0
        self.run_param['amp_end'] = 0.5
        self.run_param['sweeps'] = 20
        self.run_param['processes'] = 4
        self.run_param['elec_dist'] = 20 # um
        self.run_param['sigma'] = 0.3
        self.run_param['ext_method'] = 'som_as_point'
        self.run_param['seed'] = 1234
        self.run_param['n_elec'] = 1
        self.process_param['amp_option'] = 'both'
        self.process_param['pre_dur'] = 4
        self.process_param['post_dur'] = 8
        self.process_param['threshold'] = 4
        self.process_param['threshold_abs_soma'] = 0 # mV
        self.process_param['threshold_abs_elec'] = 10 # uV
        self.plot_param['use_tex'] = True
        self.plot_param['formats'] = ['pdf']
        self.verbose = False
    def __init__(self):
        """
        Typical initialization function, called when a new instance 
        is created.
        """
        # Inherit the LFPyUtil simulation class.
        Simulation.__init__(self)
        # These values are used by the super class to save and load data.
        self.set_name("custom_sim")

        # Create some parameters that are used by the simulate method.
        self.run_param['delay'] = 100       # ms.
        self.run_param['duration'] = 300    # ms.
        self.run_param['amp'] = 1.0         # nA.

        # Create a parameters used by the plotting function.
        self.plot_param['plot_norm'] = True
Exemple #3
0
    def __init__(self):
        Simulation.__init__(self)
        # Used by the super save and load function.
        self.set_name('mspike')

        # Used by the custom simulate and plot function.
        self.run_param['threshold'] = 4
        # Absolute threshold for a spike intracellular.
        self.run_param['threshold_abs'] = 0 # mV
        self.run_param['pptype'] = 'IClamp'
        self.run_param['delay'] = 100
        self.run_param['duration'] = 300
        self.run_param['init_amp'] = 0.1
        self.run_param['pre_dur'] = 16.7 * 0.5
        self.run_param['post_dur'] = 16.7 * 0.5
        self.run_param['spikes'] = 3
        self.plot_param['use_tex'] = True
        self.apply_electrode_at_finish = True
        self.only_apply_electrode = False
        self.verbose = False
        self._prev_data = None
 def __init__(self):
     # Inherit the LFPyUtil simulation class.
     Simulation.__init__(self)
     # These values are used by the super class to save and load data.
     self.set_name("custom_sim")