def gpriden(ggid, i): c = ggid2pieces(ggid) if c and h.section_exists("priden2", i, c): return c.priden2[i] return None
def msecden(mgid, i): ''' return secondary dendrite if it exists, otherwise None.''' c = mgid2pieces(mgid) if c and h.section_exists("secden", i, c): return c.secden[i] return None
def mgapjunc(mgid, i): ''' return secondary dendrite if it exists, otherwise None.''' c = mgid2pieces(mgid) if c and h.section_exists("gapjunc", i, c): return c.gapjunc[i] return None
def mpriden(mgid): c = mgid2pieces(mgid) if c and h.section_exists('priden', c): return c.priden return None
def gsoma(ggid): c = ggid2pieces(ggid) if c and h.section_exists('soma', c): return c.soma return None
def msoma(mgid): c = mgid2pieces(mgid) if c and h.section_exists('soma', c): return c.soma return None