Skip to content
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

provide an HNN-core example to reproduce figure #2

Open
jasmainak opened this issue Aug 18, 2022 · 0 comments
Open

provide an HNN-core example to reproduce figure #2

jasmainak opened this issue Aug 18, 2022 · 0 comments

Comments

@jasmainak
Copy link

jasmainak commented Aug 18, 2022

Hi @kohl-carmen hope you are doing well! I was wondering if it would make sense to provide an hnn-core example to reproduce your figures. It would go something like this:

from hnn_core.network_models import calcium_model
from hnn_core import read_params, simulate_dipole

params_fname = 'L_Contra.param'
window_len, scale_factor = 30, 48
net = calcium_model(params_fname, add_drives_from_params=True)

dpls = simulate_dipole(net, tstop=250)

fig, axes = plt.subplots(3, 1)
net.plot_spike_hist(ax=axes[0], show=False)
dpls[0].smooth(window_len).scale(scale_factor).plot(axes[1], show=False)
net.plot_spike_raster(ax=axes[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant