def loadElec():
    library = moose.Neutral('/library')
    moose.setCwe('/library')
    proto18.make_Ca()
    proto18.make_Ca_conc()
    proto18.make_Na()
    proto18.make_K_DR()
    proto18.make_K_A()
    # Disable all the prototypes.
    for x in moose.wildcardFind("/library/##"):
        x.tick = -1
    model = moose.Neutral('/model')
    cellId = moose.loadModel(os.path.join(scriptDir, 'soma.p'), '/model/elec',
                             "Neutral")
    moose.setCwe('/')
    return cellId
def loadElec():
	library = moose.Neutral( '/library' )
	moose.setCwe( '/library' )
	proto18.make_Ca()
	proto18.make_Ca_conc()
	proto18.make_K_AHP()
	proto18.make_K_C()
	proto18.make_Na()
	proto18.make_K_DR()
	proto18.make_K_A()
	proto18.make_glu()
	proto18.make_NMDA()
	proto18.make_Ca_NMDA()
	proto18.make_NMDA_Ca_conc()
	proto18.make_axon()
	model = moose.Neutral( '/model' )
	cellId = moose.loadModel( 'ca1_asym.p', '/model/elec', "Neutral" )
	return cellId
Exemple #3
0
def loadElec():
    library = moose.Neutral( '/library' )
    moose.setCwe( '/library' )
    proto18.make_Ca()
    proto18.make_Ca_conc()
    proto18.make_K_AHP()
    proto18.make_K_C()
    proto18.make_Na()
    proto18.make_K_DR()
    proto18.make_K_A()
    proto18.make_glu()
    proto18.make_NMDA()
    proto18.make_Ca_NMDA()
    proto18.make_NMDA_Ca_conc()
    proto18.make_axon()
    model = moose.element( '/model' )
    cellId = moose.loadModel( 'ca1_asym.p', '/model/elec', "Neutral" )
    return cellId
def loadElec():
    library = moose.Neutral( '/library' )
    moose.setCwe( '/library' )
    proto18.make_Ca()
    proto18.make_Ca_conc()
    proto18.make_Na()
    proto18.make_K_DR()
    proto18.make_K_A()
    # Disable all the prototypes.
    for x in moose.wildcardFind( "/library/##" ):
        x.tick = -1
    model = moose.Neutral( '/model' )
    cellId = moose.loadModel(
            os.path.join( scriptDir, 'soma.p')
            , '/model/elec', "Neutral"
            )
    moose.setCwe( '/' )
    return cellId
def loadElec():
    library = moose.Neutral( '/library' )
    moose.setCwe( '/library' )
    proto18.make_Ca()
    proto18.make_Ca_conc()
    proto18.make_Na()
    proto18.make_K_DR()
    proto18.make_K_A()
    # Disable all the prototypes.
    for x in moose.wildcardFind( "/library/##" ):
        x.tick = -1
    model = moose.Neutral( '/model' )
    cellId = moose.loadModel( 'soma.p', '/model/elec', "Neutral" )
    moose.setCwe( '/' )
    '''
    hsolve = moose.HSolve( '/model/elec/hsolve' )
    hsolve.dt = 50.0e-6
    hsolve.target = '/model/elec/soma'
    moose.reinit()
    '''
    return cellId
def loadElec():
    library = moose.Neutral('/library')
    moose.setCwe('/library')
    proto18.make_Ca()
    proto18.make_Ca_conc()
    proto18.make_Na()
    proto18.make_K_DR()
    proto18.make_K_A()
    # Disable all the prototypes.
    for x in moose.wildcardFind("/library/##"):
        x.tick = -1
    model = moose.Neutral('/model')
    cellId = moose.loadModel('soma.p', '/model/elec', "Neutral")
    moose.setCwe('/')
    '''
    hsolve = moose.HSolve( '/model/elec/hsolve' )
    hsolve.dt = 50.0e-6
    hsolve.target = '/model/elec/soma'
    moose.reinit()
    '''
    return cellId
import proto18

def dumpPlots( fname ):
	if ( os.path.exists( fname ) ):
		os.remove( fname )
	tab.xplot( fname, 'soma.Vm' )
	catab.xplot( fname, 'soma.Ca' )

library = moose.Neutral( '/library' )
moose.setCwe( '/library' )
proto18.make_Ca()
proto18.make_Ca_conc()
proto18.make_K_AHP()
proto18.make_K_C()
proto18.make_Na()
proto18.make_K_DR()
proto18.make_K_A()
proto18.make_glu()
proto18.make_NMDA()
proto18.make_Ca_NMDA()
proto18.make_NMDA_Ca_conc()
proto18.make_axon()

cellId = moose.loadModel( 'ca1_asym.p', '/cell', "hsolve" )
moose.le( cellId )
moose.le( '/cell/lat_14_1' )
#le( '/cell' )
graphs = moose.Neutral( '/graphs' )
tab = moose.Table( '/graphs/soma' )
catab = moose.Table( '/graphs/ca' )
soma = moose.element( '/cell/soma' )