Skip to content

changed path to reacSystemPath #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion snippets/changeFuncExpression.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def main():
stoich = moose.Stoich( '/model/compartment/stoich' )
stoich.compartment = moose.element( '/model/compartment' )
stoich.ksolve = ksolve
stoich.path = "/model/compartment/##"
stoich.reacSystemPath = "/model/compartment/##"
#solver.method = "rk5"
#mesh = moose.element( "/model/compartment/mesh" )
#moose.connect( mesh, "remesh", solver, "remesh" )
Expand Down
2 changes: 1 addition & 1 deletion snippets/chemDoseResponse.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def main():
stoich = moose.Stoich( '/model/compartment/stoich' )
stoich.compartment = compartment
stoich.ksolve = ksolve
stoich.path = "/model/compartment/##"
stoich.reacSystemPath = "/model/compartment/##"
state = moose.SteadyState( '/model/compartment/state' )

moose.reinit()
Expand Down
2 changes: 1 addition & 1 deletion snippets/cspaceSteadyState.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def main():
stoich.compartment = compartment
stoich.ksolve = ksolve
#ksolve.stoich = stoich
stoich.path = "/model/compartment/##"
stoich.reacSystemPath = "/model/compartment/##"
state = moose.SteadyState( '/model/compartment/state' )

moose.reinit()
Expand Down
2 changes: 1 addition & 1 deletion snippets/cylinderMotor.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def makeModel():
stoich.compartment = compartment
stoich.ksolve = ksolve
stoich.dsolve = dsolve
stoich.path = "/model/compartment/##"
stoich.reacSystemPath = "/model/compartment/##"
assert( dsolve.numPools == 4 )
a.vec[0].concInit = concA * 1
b.vec[num-1].concInit = concA * 2
Expand Down
2 changes: 1 addition & 1 deletion snippets/diffusion_using_Gillespie.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def setup_solvers( ):
k = moose.Ksolve( '%s/ksolve' % compt_.path )
s.ksolve = k
s.compartment = compt_
s.path = '%s/##' % compt_.path
s.reacSystemPath = '%s/##' % compt_.path


def main( ):
Expand Down
2 changes: 1 addition & 1 deletion snippets/findChemSteadyState.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def main():
stoich = moose.Stoich( '/model/compartment/stoich' )
stoich.compartment = compartment
stoich.ksolve = ksolve
stoich.path = "/model/compartment/##"
stoich.reacSystemPath = "/model/compartment/##"
state = moose.SteadyState( '/model/compartment/state' )

moose.reinit()
Expand Down
2 changes: 1 addition & 1 deletion snippets/funcInputToPools.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def makeModel():
stoich = moose.Stoich( '/model/compartment/stoich' )
stoich.compartment = compartment
stoich.ksolve = gsolve
stoich.path = '/model/compartment/##'
stoich.reacSystemPath = '/model/compartment/##'
'''
'''

Expand Down
2 changes: 1 addition & 1 deletion snippets/funcRateHarmonicOsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def main():
stoich = moose.Stoich( '/model/harmonic/stoich' )
stoich.compartment = compt
stoich.ksolve = ksolve
stoich.path = '/model/harmonic/##'
stoich.reacSystemPath = '/model/harmonic/##'
for i in range( 11, 18 ):
moose.setClock( i, 0.1 )
moose.reinit()
Expand Down
2 changes: 1 addition & 1 deletion snippets/funcReacLotkaVolterra.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def main():
stoich = moose.Stoich( '/model/lotka/stoich' )
stoich.compartment = compt
stoich.ksolve = ksolve
stoich.path = '/model/lotka/##'
stoich.reacSystemPath = '/model/lotka/##'
moose.reinit()
moose.start( runtime ) # Run the model

Expand Down
2 changes: 1 addition & 1 deletion snippets/rxdFuncDiffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def main():
stoich.ksolve = ksolve
stoich.dsolve = dsolve
stoich.compartment = compt
stoich.path = '/cylinder/##'
stoich.reacSystemPath = '/cylinder/##'

#initialize
x = numpy.arange( 0, compt.x1, compt.diffLength )
Expand Down
2 changes: 1 addition & 1 deletion snippets/rxdFuncDiffusionStoch.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def main():
stoich.compartment = compt
stoich.ksolve = ksolve
stoich.dsolve = dsolve
stoich.path = '/cylinder/##'
stoich.reacSystemPath = '/cylinder/##'

#for i in range( 10, 18 ):
# moose.setClock( i, dt )
Expand Down
2 changes: 1 addition & 1 deletion snippets/rxdReacDiffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main():
stoich.compartment = compt
stoich.ksolve = ksolve
stoich.dsolve = dsolve
stoich.path = '/cylinder/##'
stoich.reacSystemPath = '/cylinder/##'
for i in range( 10, 18 ):
moose.setClock( i, dt )

Expand Down
2 changes: 1 addition & 1 deletion snippets/savemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main():
file using moose
"""
model = moose.loadModel(os.path.join( cwd, '../genesis/reaction.g'), '/model')
written = moose.mooseWriteKkit('/model', 'testsave.g')
written = moose.writeKkit('/model', 'testsave.g')
print( written )
if __name__ == '__main__':
main()
2 changes: 1 addition & 1 deletion snippets/scaleVolumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def main():
compt = moose.element( '/model/compartment' );
stoich.compartment = compt
stoich.ksolve = gsolve
stoich.path = "/model/compartment/##"
stoich.reacSystemPath = "/model/compartment/##"
#moose.setClock( 5, 1.0 ) # clock for the solver
#moose.useClock( 5, '/model/compartment/gsolve', 'process' )
a = moose.element( '/model/compartment/a' )
Expand Down
2 changes: 1 addition & 1 deletion snippets/scriptGssaSolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def main():
stoich = moose.Stoich( '/model/compartment/stoich' )
stoich.compartment = moose.element( '/model/compartment' )
stoich.ksolve = gsolve
stoich.path = "/model/compartment/##"
stoich.reacSystemPath = "/model/compartment/##"
#solver.method = "rk5"
#mesh = moose.element( "/model/compartment/mesh" )
#moose.connect( mesh, "remesh", solver, "remesh" )
Expand Down
2 changes: 1 addition & 1 deletion snippets/stochasticLotkaVolterra.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def main():
stoich = moose.Stoich( '/model/lotka/stoich' )
stoich.compartment = compt
stoich.ksolve = ksolve
stoich.path = '/model/lotka/##'
stoich.reacSystemPath = '/model/lotka/##'
moose.reinit()
moose.start( runtime ) # Run the model

Expand Down
2 changes: 1 addition & 1 deletion snippets/switchKineticSolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def switchSolvers(solver):
stoich = moose.Stoich('/model/kinetics/stoich')
stoich.compartment = compt
stoich.ksolve = ksolve
stoich.path = "/model/kinetics/##"
stoich.reacSystemPath = "/model/kinetics/##"

def main():
"""
Expand Down