Commit f90f4f1b authored by Jan Fousek's avatar Jan Fousek
Browse files

cleanup

parent 7233d1a3
This diff is collapsed.
......@@ -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(
......
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment