def getAvailableMechs(self): mechs = mechVarList()['mechs'] for key in list(mechs.keys()): if 'ion' in key: del mechs[key] for key in ["morphology", "capacitance", "extracellular"]: del mechs[key] return list(mechs.keys())
def getMechParams(self, mechanism): params = mechVarList()['mechs'][mechanism] return [value[:-(len(mechanism) + 1)] for value in params]