Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Piotr Chmielarz
TVB_tutorials
Commits
f90f4f1b
Commit
f90f4f1b
authored
Jun 09, 2021
by
Jan Fousek
Browse files
cleanup
parent
7233d1a3
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
4_TVB_EITN_Modelling_Epilepsy.ipynb
deleted
100755 → 0
View file @
7233d1a3
This diff is collapsed.
Click to expand it.
phase_plane.py
View file @
f90f4f1b
...
...
@@ -158,7 +158,7 @@ def phase_plane_interactive(model, integrator):
for
svar
,
svar_range
in
model
.
state_variable_range
.
items
():
param_kwargs
[
svar
]
=
FloatSlider
(
min
=
svar_range
[
0
],
max
=
svar_range
[
1
],
value
=
svar_range
.
mean
(
)
min
=
svar_range
[
0
],
max
=
svar_range
[
1
],
value
=
np
.
mean
(
svar_range
)
)
param_kwargs
[
'svx'
]
=
Dropdown
(
...
...
utils.py
View file @
f90f4f1b
...
...
@@ -27,3 +27,12 @@ def plot_connectivity(conn):
fig
.
tight_layout
()
plt
.
show
()
def
generate_initial_conditions_array
(
conn
,
dt
,
model
):
idelays
=
np
.
rint
(
conn
.
delays
/
dt
).
astype
(
numpy
.
int32
)
horizon
=
idelays
.
max
()
+
1
nvar
=
model
.
nvar
nnodes
=
conn
.
number_of_nodes
nmodes
=
model
.
number_of_modes
return
np
.
zeros
(
(
horizon
,
nvar
,
nnodes
,
nmodes
)
)
\ No newline at end of file
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment