示例#1
0
 def insert_mechanism(self, mech):
     """
     Insert density mechanism into cell
     :param mech:
     """
     if isinstance(mech, basestring):
         mech = Mechanism(mech)
     mech.insert_into(self.soma)
     self.setRevVar()
     self.setConc()
示例#2
0
 def add_kcc2(self, **kwargs):
     kcc2 = Mechanism('KCC2', **kwargs)
     for section in self.sections:
         kcc2.insert_into(section)
     self.kcc2_inserted = True
     return self