def case_6(self): return [ arb.gap_junction_connection(arb.cell_member(2 + self.shift_, 0), 0, 0.1), arb.gap_junction_connection(arb.cell_member(7 + self.shift_, 0), 0, 0.1) ]
def case_2(self): return [ arb.gap_junction_connection(arb.cell_member(6 + self.shift_, 0), arb.cell_member(self.gid_, 0), 0.1), arb.gap_junction_connection(arb.cell_member(9 + self.shift_, 0), arb.cell_member(self.gid_, 0), 0.1) ]
def gap_junctions_on(self, gid): group = int(gid/self.groups) id = gid%self.size if (id == group and group != (self.groups - 1)): return [arb.gap_junction_connection(arb.cell_member(gid + self.size, 0), arb.cell_member(gid, 0), 0.1)] elif (id == group - 1): return [arb.gap_junction_connection(arb.cell_member(gid - self.size, 0), arb.cell_member(gid, 0), 0.1)] else: return []
def gap_junctions_on(self, gid): group = int(gid / self.groups) id = gid % self.size if (id == group and group != (self.groups - 1)): return [ arb.gap_junction_connection((gid + self.size, "gj"), "gj", 0.1) ] elif (id == group - 1): return [ arb.gap_junction_connection((gid - self.size, "gj"), "gj", 0.1) ] else: return []
def gap_junctions_on(self, gid): assert gid in [0, 1] # create a bidirectional gap junction from cell 0 at label "gj_label" to cell 1 at label "gj_label" and back. return [ arbor.gap_junction_connection((1 if gid == 0 else 0, 'gj_label'), 'gj_label', 1) ]
def gap_junctions_on(self, gid): conns = [] chain_begin = int(gid / self.ncells_per_chain) * self.ncells_per_chain chain_end = chain_begin + self.ncells_per_chain next_cell = gid + 1 prev_cell = gid - 1 if next_cell < chain_end: conns.append( arbor.gap_junction_connection((gid + 1, 'gj'), 'gj', 0.015)) if prev_cell >= chain_begin: conns.append( arbor.gap_junction_connection((gid - 1, 'gj'), 'gj', 0.015)) return conns
def case_9(self): return [ arb.gap_junction_connection((2 + self.shift_, "gj"), "gj", 0.1) ]
def case_7(self): return [ arb.gap_junction_connection((6 + self.shift_, "gj"), "gj", 0.1), arb.gap_junction_connection((1 + self.shift_, "gj"), "gj", 0.1) ]