Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor 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
arbor-sim
arbor
Commits
4615dc74
Unverified
Commit
4615dc74
authored
4 years ago
by
thorstenhater
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make dt optional parameter to model.run. (#1064)
parent
8d866593
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/single_cell_model.cpp
+7
-3
7 additions, 3 deletions
python/single_cell_model.cpp
with
7 additions
and
3 deletions
python/single_cell_model.cpp
+
7
−
3
View file @
4615dc74
...
...
@@ -171,7 +171,7 @@ public:
gprop_
.
add_ion
(
ion
,
valence
,
int_con
,
ext_con
,
rev_pot
);
}
void
run
(
double
tfinal
)
{
void
run
(
double
tfinal
,
double
dt
)
{
single_cell_recipe
rec
(
cell_
,
probes_
,
gprop_
);
auto
domdec
=
arb
::
partition_load_balance
(
rec
,
ctx_
);
...
...
@@ -201,7 +201,7 @@ public:
}
});
sim_
->
run
(
tfinal
,
0.025
);
sim_
->
run
(
tfinal
,
dt
);
run_
=
true
;
}
...
...
@@ -233,7 +233,11 @@ void register_single_cell(pybind11::module& m) {
model
.
def
(
pybind11
::
init
<
arb
::
cable_cell
>
(),
"cell"
_a
,
"Initialise a single cell model for a cable cell."
)
.
def
(
"run"
,
&
single_cell_model
::
run
,
"tfinal"
_a
,
"Run model from t=0 to t=tfinal ms."
)
.
def
(
"run"
,
&
single_cell_model
::
run
,
"tfinal"
_a
,
"dt"
_a
=
0.025
,
"Run model from t=0 to t=tfinal ms."
)
.
def
(
"probe"
,
[](
single_cell_model
&
m
,
const
char
*
what
,
const
char
*
where
,
double
frequency
)
{
m
.
probe
(
what
,
where
,
frequency
);},
...
...
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