示例#1
0
 def cell_description(self, gid):
     
     cell = arb.make_soma_cell()
     loc = arb.segment_location(0, 0.5)
     cell.add_synapse(loc)
     cell.add_detector(loc, 20)
     
     if gid==0:
         cell.add_stimulus(loc, 0, 20, 0.01)
     return cell
示例#2
0
    def cell_description(self, gid):
# ================================ SOLUTION 1 ================================ #
        # 1a) Make a soma cell
        cell = arb.make_soma_cell()
        
        # 1b) Add synapse at segment 0 at location 0.5
        loc = arb.segment_location(0, 0.5)
        cell.add_synapse(loc)
        
        # 1c) Add detector with threshold 20 mV
        cell.add_detector(loc, 20)
        
        # 1d) Add stimulus to first cell with gid 0 at t0 = 0 ms for duration of 20 ms with weight 0.01 nA
        if gid==0:
            cell.add_stimulus(loc, 0, 20, 0.01)
        return cell