def run_sim(morphology='<STR_LIT>',<EOL>cell_rotation=dict(x=<NUM_LIT>, y=-<NUM_LIT>, z=<NUM_LIT>),<EOL>closest_idx=dict(x=-<NUM_LIT>, y=<NUM_LIT:0.>, z=<NUM_LIT>)):
<EOL>cell = LFPy.Cell(morphology=morphology, **cell_parameters)<EOL>cell.set_rotation(**cell_rotation)<EOL>synapse_parameters = {<EOL>'<STR_LIT>' : cell.get_closest_idx(**closest_idx),<EOL>'<STR_LIT:e>' : <NUM_LIT:0.>,                   <EOL>'<STR_LIT>' : '<STR_LIT>',       <EOL>'<STR_LIT>' : <NUM_LIT:0.5>,                 <EOL>'<STR_LIT>' : <NUM_LIT>,            <EOL>'<STR_LIT>' : True,    <EOL>}<EOL>synapse = LFPy.Synapse(cell, **synapse_parameters)<EOL>synapse.set_spike_times(np.array([<NUM_LIT:1.>]))<EOL>print("<STR_LIT>")<EOL>cell.simulate(rec_imem=True,rec_isyn=True)<EOL>grid_electrode = LFPy.RecExtElectrode(cell,**grid_electrode_parameters)<EOL>point_electrode = LFPy.RecExtElectrode(cell,**point_electrode_parameters)<EOL>grid_electrode.calc_lfp()<EOL>point_electrode.calc_lfp()<EOL>print("<STR_LIT>")<EOL>return cell, synapse, grid_electrode, point_electrode<EOL>
set up simple cell simulation with LFPs in the plane