def METHOD_NAME(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