Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moose
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sahil Moza
moose
Commits
8636bb34
Commit
8636bb34
authored
7 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Plain Diff
Merge commit '
b5ec7b3c
'
parents
d194143c
b5ec7b3c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
moose-examples/tutorials/ChemicalBistables/simpleBis.py
+7
-5
7 additions, 5 deletions
moose-examples/tutorials/ChemicalBistables/simpleBis.py
moose-examples/tutorials/Rdesigneur/rdes_ex2.py
+1
-2
1 addition, 2 deletions
moose-examples/tutorials/Rdesigneur/rdes_ex2.py
with
8 additions
and
7 deletions
moose-examples/tutorials/ChemicalBistables/simpleBis.py
+
7
−
5
View file @
8636bb34
...
...
@@ -19,7 +19,7 @@
# You may also find in interesting to change the volume.
import
math
import
pylab
import
matplotlib.pyplot
as
plt
import
numpy
import
moose
import
sys
...
...
@@ -87,12 +87,14 @@ def makeModel():
moose
.
useClock
(
4
,
'
/model/compartment/##
'
,
'
process
'
)
moose
.
useClock
(
8
,
'
/model/graphs/#
'
,
'
process
'
)
def
displayPlots
():
print
(
'
Displaying plots
'
)
for
x
in
moose
.
wildcardFind
(
'
/model/graphs/conc#
'
):
t
=
numpy
.
arange
(
0
,
x
.
vector
.
size
,
1
)
#sec
p
ylab
.
plot
(
t
,
x
.
vector
,
label
=
x
.
name
)
p
ylab
.
legend
()
p
ylab
.
show
()
p
lt
.
plot
(
t
,
x
.
vector
,
label
=
x
.
name
)
p
lt
.
legend
()
p
lt
.
show
()
def
main
():
solver
=
"
gsl
"
...
...
@@ -132,8 +134,8 @@ def main():
# Iterate through all plots, dump their contents to data.plot.
displayPlots
()
raw_input
(
'
Press any key to quit
'
)
quit
()
# Run the 'main' if this script is executed standalone.
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
moose-examples/tutorials/Rdesigneur/rdes_ex2.py
+
1
−
2
View file @
8636bb34
...
...
@@ -8,5 +8,4 @@ rdes.buildModel()
moose
.
reinit
()
moose
.
start
(
0.3
)
rdes
.
display
()
rdes
.
display
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment