hnn-core 0.5.1.dev0__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/MANIFEST.in +3 -0
- {hnn_core-0.5.1.dev0/hnn_core.egg-info → hnn_core-0.6.0}/PKG-INFO +24 -6
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/README.md +10 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/optimize_evoked.py +3 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/optimize_rhythmic.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/plot_batch_simulate.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/plot_connectivity.py +3 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/plot_firing_pattern.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/plot_hnn_animation.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/plot_record_extracellular_potentials.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/plot_replaying_spike_data_as_input.py +4 -4
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/plot_simulate_mpi_backend.py +16 -8
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/workflows/plot_simulate_alpha.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/workflows/plot_simulate_beta.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/workflows/plot_simulate_evoked.py +3 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/workflows/plot_simulate_gamma.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/workflows/plot_simulate_somato.py +2 -2
- hnn_core-0.6.0/hnn_core/__init__.py +58 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/batch_simulate.py +15 -16
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/cell.py +23 -4
- hnn_core-0.6.0/hnn_core/cells_default.py +793 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/dipole.py +80 -33
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/extracellular.py +4 -7
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/gui/_viz_manager.py +133 -45
- hnn_core-0.6.0/hnn_core/gui/gui.py +6266 -0
- hnn_core-0.6.0/hnn_core/gui/gui_scripts.js +146 -0
- hnn_core-0.6.0/hnn_core/gui/gui_styles.css +942 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/hnn_io.py +8 -5
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/network.py +3 -1
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/network_builder.py +10 -39
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/network_models.py +91 -6
- hnn_core-0.6.0/hnn_core/optimization/__init__.py +6 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/optimization/general_optimization.py +326 -35
- hnn_core-0.6.0/hnn_core/optimization/objective_functions.py +466 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/parallel_backends.py +5 -5
- hnn_core-0.5.1.dev0/hnn_core/param/jones2009_base.json → hnn_core-0.6.0/hnn_core/param/neymotin2020_base.json +31 -12
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/params.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/conftest.py +2 -2
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/regenerate_test_network.py +3 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_batch_simulate.py +3 -6
- hnn_core-0.6.0/hnn_core/tests/test_cells_default.py +355 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_dipole.py +3 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_drives.py +3 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_extracellular.py +5 -5
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_general_optimization.py +212 -205
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_gui.py +491 -31
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_io.py +3 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_mpi_child.py +3 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_network.py +49 -21
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_optimize_evoked.py +5 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_parallel_backends.py +18 -8
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_params.py +6 -6
- hnn_core-0.6.0/hnn_core/tests/test_utils.py +87 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_viz.py +3 -3
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/utils.py +36 -13
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/viz.py +23 -51
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0/hnn_core.egg-info}/PKG-INFO +24 -6
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core.egg-info/SOURCES.txt +3 -1
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core.egg-info/requires.txt +14 -2
- hnn_core-0.6.0/setup.py +159 -0
- hnn_core-0.5.1.dev0/hnn_core/__init__.py +0 -22
- hnn_core-0.5.1.dev0/hnn_core/cells_default.py +0 -444
- hnn_core-0.5.1.dev0/hnn_core/gui/gui.py +0 -3031
- hnn_core-0.5.1.dev0/hnn_core/optimization/__init__.py +0 -1
- hnn_core-0.5.1.dev0/hnn_core/optimization/objective_functions.py +0 -160
- hnn_core-0.5.1.dev0/hnn_core/tests/test_cells_default.py +0 -86
- hnn_core-0.5.1.dev0/hnn_core/tests/test_utils.py +0 -44
- hnn_core-0.5.1.dev0/setup.py +0 -134
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/LICENSE +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/README.txt +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/README.txt +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/workflows/README.txt +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/cell_response.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/check.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/docs.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/drives.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/externals/__init__.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/externals/bayesopt.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/externals/mne.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/gui/__init__.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/gui/_logging.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/gui/hnn_widget.ipynb +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/ar.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/ca.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/cad.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/cat.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/dipole.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/dipole_pp.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/hh2.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/kca.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/km.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mod/vecevent.mod +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/mpi_child.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/optimization/optimize_evoked.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/param/N20.json +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/param/default.json +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/param/gamma_L5weak_L2weak.json +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/params_default.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_cell.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core/tests/test_cell_response.py +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core.egg-info/dependency_links.txt +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core.egg-info/entry_points.txt +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/hnn_core.egg-info/top_level.txt +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/pyproject.toml +0 -0
- {hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hnn-core
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: Code for biophysical simulation of a cortical column using Neuron
|
|
5
5
|
Home-page:
|
|
6
6
|
Download-URL: http://github.com/jonescompneurolab/hnn-core
|
|
@@ -33,6 +33,7 @@ Requires-Dist: scipy
|
|
|
33
33
|
Requires-Dist: h5io
|
|
34
34
|
Provides-Extra: opt
|
|
35
35
|
Requires-Dist: scikit-learn; extra == "opt"
|
|
36
|
+
Requires-Dist: cma; extra == "opt"
|
|
36
37
|
Provides-Extra: parallel
|
|
37
38
|
Requires-Dist: joblib; extra == "parallel"
|
|
38
39
|
Requires-Dist: psutil; extra == "parallel"
|
|
@@ -48,7 +49,7 @@ Requires-Dist: myst-parser; extra == "docs"
|
|
|
48
49
|
Requires-Dist: nibabel; extra == "docs"
|
|
49
50
|
Requires-Dist: numpydoc; extra == "docs"
|
|
50
51
|
Requires-Dist: pillow; extra == "docs"
|
|
51
|
-
Requires-Dist: pooch; extra == "docs"
|
|
52
|
+
Requires-Dist: pooch<1.9.0; extra == "docs"
|
|
52
53
|
Requires-Dist: pydata-sphinx-theme; extra == "docs"
|
|
53
54
|
Requires-Dist: sphinx; extra == "docs"
|
|
54
55
|
Requires-Dist: sphinx-gallery; extra == "docs"
|
|
@@ -59,8 +60,18 @@ Requires-Dist: ipywidgets>=8.0.0; extra == "gui"
|
|
|
59
60
|
Requires-Dist: ipykernel; extra == "gui"
|
|
60
61
|
Requires-Dist: ipympl; extra == "gui"
|
|
61
62
|
Requires-Dist: voila; extra == "gui"
|
|
63
|
+
Provides-Extra: all
|
|
64
|
+
Requires-Dist: scikit-learn; extra == "all"
|
|
65
|
+
Requires-Dist: cma; extra == "all"
|
|
66
|
+
Requires-Dist: joblib; extra == "all"
|
|
67
|
+
Requires-Dist: psutil; extra == "all"
|
|
68
|
+
Requires-Dist: ipywidgets>=8.0.0; extra == "all"
|
|
69
|
+
Requires-Dist: ipykernel; extra == "all"
|
|
70
|
+
Requires-Dist: ipympl; extra == "all"
|
|
71
|
+
Requires-Dist: voila; extra == "all"
|
|
62
72
|
Provides-Extra: dev
|
|
63
73
|
Requires-Dist: scikit-learn; extra == "dev"
|
|
74
|
+
Requires-Dist: cma; extra == "dev"
|
|
64
75
|
Requires-Dist: joblib; extra == "dev"
|
|
65
76
|
Requires-Dist: psutil; extra == "dev"
|
|
66
77
|
Requires-Dist: codespell; extra == "dev"
|
|
@@ -73,7 +84,7 @@ Requires-Dist: myst-parser; extra == "dev"
|
|
|
73
84
|
Requires-Dist: nibabel; extra == "dev"
|
|
74
85
|
Requires-Dist: numpydoc; extra == "dev"
|
|
75
86
|
Requires-Dist: pillow; extra == "dev"
|
|
76
|
-
Requires-Dist: pooch; extra == "dev"
|
|
87
|
+
Requires-Dist: pooch<1.9.0; extra == "dev"
|
|
77
88
|
Requires-Dist: pydata-sphinx-theme; extra == "dev"
|
|
78
89
|
Requires-Dist: sphinx; extra == "dev"
|
|
79
90
|
Requires-Dist: sphinx-gallery; extra == "dev"
|
|
@@ -99,16 +110,15 @@ Dynamic: summary
|
|
|
99
110
|
|
|
100
111
|
|
|
101
112
|
<h1 align="center">
|
|
102
|
-
<img src="https://raw.githubusercontent.com/jonescompneurolab/jones-website/master/images/frontpage/logos/logo-hnn-medium.png" width="300">
|
|
113
|
+
<img src="https://raw.githubusercontent.com/jonescompneurolab/jones-website/master/images/frontpage/logos/logo-hnn-medium.png" alt="Logo of HNN, the Human Neocortical Neurosolver" width="300">
|
|
103
114
|
</h1><br>
|
|
104
115
|
|
|
105
116
|
# hnn-core
|
|
106
117
|
|
|
107
|
-
[](https://github.com/jonescompneurolab/hnn-core/actions/?query=branch:master
|
|
118
|
+
[](https://github.com/jonescompneurolab/hnn-core/actions/?query=branch:master)
|
|
108
119
|
[](https://circleci.com/gh/jonescompneurolab/hnn-core)
|
|
109
120
|
[](https://codecov.io/gh/jonescompneurolab/hnn-core)
|
|
110
121
|
[](https://pypi.org/project/hnn-core/)
|
|
111
|
-
[](https://gitter.im/jonescompneurolab/hnn-core?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
|
112
122
|
[](https://doi.org/10.21105/joss.05848)
|
|
113
123
|
|
|
114
124
|

|
|
@@ -212,6 +222,14 @@ JOSS](https://doi.org/10.21105/joss.05848):
|
|
|
212
222
|
> circuit-level interpretation of human MEG/EEG. *Journal of Open Source
|
|
213
223
|
> Software*, 8(92), 5848, <https://doi.org/10.21105/joss.05848>
|
|
214
224
|
|
|
225
|
+
# Funding
|
|
226
|
+
|
|
227
|
+
HNN-core development has been funded in part by the following United States of America federal government grants:
|
|
228
|
+
- NIH R01EB022889 Human Neocortical Neurosolver
|
|
229
|
+
- NIH 1U24NS129945 Dissemination of the Human Neocortical Neurosolver (HNN) software for circuit level interpretation of human MEG/EEG
|
|
230
|
+
- NSF IIS 2424101 Collaborative Research: CRCNS Research Proposal: Uncovering the mechanisms and meaning of brain rhythm frequency shifts during decision making
|
|
231
|
+
|
|
215
232
|
[Contributing Guide]: https://jonescompneurolab.github.io/hnn-core/stable/contributing.html
|
|
216
233
|
[HNN Textbook website]: https://jonescompneurolab.github.io/textbook/content/preface.html
|
|
217
234
|
[Installation Guide]: https://jonescompneurolab.github.io/textbook/content/01_getting_started/installation.html
|
|
235
|
+
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
<h1 align="center">
|
|
3
|
-
<img src="https://raw.githubusercontent.com/jonescompneurolab/jones-website/master/images/frontpage/logos/logo-hnn-medium.png" width="300">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/jonescompneurolab/jones-website/master/images/frontpage/logos/logo-hnn-medium.png" alt="Logo of HNN, the Human Neocortical Neurosolver" width="300">
|
|
4
4
|
</h1><br>
|
|
5
5
|
|
|
6
6
|
# hnn-core
|
|
7
7
|
|
|
8
|
-
[](https://github.com/jonescompneurolab/hnn-core/actions/?query=branch:master
|
|
8
|
+
[](https://github.com/jonescompneurolab/hnn-core/actions/?query=branch:master)
|
|
9
9
|
[](https://circleci.com/gh/jonescompneurolab/hnn-core)
|
|
10
10
|
[](https://codecov.io/gh/jonescompneurolab/hnn-core)
|
|
11
11
|
[](https://pypi.org/project/hnn-core/)
|
|
12
|
-
[](https://gitter.im/jonescompneurolab/hnn-core?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
|
13
12
|
[](https://doi.org/10.21105/joss.05848)
|
|
14
13
|
|
|
15
14
|

|
|
@@ -113,6 +112,14 @@ JOSS](https://doi.org/10.21105/joss.05848):
|
|
|
113
112
|
> circuit-level interpretation of human MEG/EEG. *Journal of Open Source
|
|
114
113
|
> Software*, 8(92), 5848, <https://doi.org/10.21105/joss.05848>
|
|
115
114
|
|
|
115
|
+
# Funding
|
|
116
|
+
|
|
117
|
+
HNN-core development has been funded in part by the following United States of America federal government grants:
|
|
118
|
+
- NIH R01EB022889 Human Neocortical Neurosolver
|
|
119
|
+
- NIH 1U24NS129945 Dissemination of the Human Neocortical Neurosolver (HNN) software for circuit level interpretation of human MEG/EEG
|
|
120
|
+
- NSF IIS 2424101 Collaborative Research: CRCNS Research Proposal: Uncovering the mechanisms and meaning of brain rhythm frequency shifts during decision making
|
|
121
|
+
|
|
116
122
|
[Contributing Guide]: https://jonescompneurolab.github.io/hnn-core/stable/contributing.html
|
|
117
123
|
[HNN Textbook website]: https://jonescompneurolab.github.io/textbook/content/preface.html
|
|
118
124
|
[Installation Guide]: https://jonescompneurolab.github.io/textbook/content/01_getting_started/installation.html
|
|
125
|
+
|
|
@@ -27,7 +27,7 @@ from matplotlib.lines import Line2D
|
|
|
27
27
|
# required for this tutorial.
|
|
28
28
|
|
|
29
29
|
import hnn_core
|
|
30
|
-
from hnn_core import (MPIBackend,
|
|
30
|
+
from hnn_core import (MPIBackend, neymotin_2020_model, simulate_dipole,
|
|
31
31
|
read_dipole)
|
|
32
32
|
from hnn_core.viz import plot_dipole
|
|
33
33
|
|
|
@@ -66,7 +66,7 @@ ax.legend(['experimental'])
|
|
|
66
66
|
# we arrived to after some hand-tuning. This simulation will provide a baseline
|
|
67
67
|
# to compare against the experimental data before optimization.
|
|
68
68
|
|
|
69
|
-
net_initial =
|
|
69
|
+
net_initial = neymotin_2020_model()
|
|
70
70
|
|
|
71
71
|
n_drive_cells = 1
|
|
72
72
|
cell_specific = False
|
|
@@ -246,7 +246,7 @@ initial_params = dict({'evprox2_ampa_L5_pyramidal': 0.1,
|
|
|
246
246
|
#
|
|
247
247
|
# .. note:: A custom objective function can also be supplied.
|
|
248
248
|
|
|
249
|
-
net =
|
|
249
|
+
net = neymotin_2020_model()
|
|
250
250
|
optim = Optimizer(net, tstop=tstop, constraints=constraints,
|
|
251
251
|
set_params=set_params, initial_params=initial_params, max_iter=50)
|
|
252
252
|
with MPIBackend(n_procs=n_procs, mpi_cmd='mpiexec'):
|
|
@@ -17,7 +17,7 @@ import matplotlib.pyplot as plt
|
|
|
17
17
|
###############################################################################
|
|
18
18
|
# Let us import hnn_core
|
|
19
19
|
|
|
20
|
-
from hnn_core import (MPIBackend,
|
|
20
|
+
from hnn_core import (MPIBackend, neymotin_2020_model, simulate_dipole)
|
|
21
21
|
|
|
22
22
|
# The number of cores may need modifying depending on your current machine.
|
|
23
23
|
n_procs = 10
|
|
@@ -91,7 +91,7 @@ tstop = 300
|
|
|
91
91
|
scale_factor = 3000
|
|
92
92
|
smooth_window_len = 20
|
|
93
93
|
|
|
94
|
-
net =
|
|
94
|
+
net = neymotin_2020_model()
|
|
95
95
|
optim = Optimizer(net, tstop=tstop, constraints=constraints,
|
|
96
96
|
set_params=set_params, obj_fun='maximize_psd', max_iter=50)
|
|
97
97
|
|
|
@@ -28,7 +28,7 @@ import matplotlib.pyplot as plt
|
|
|
28
28
|
import numpy as np
|
|
29
29
|
|
|
30
30
|
from hnn_core.batch_simulate import BatchSimulate
|
|
31
|
-
from hnn_core import
|
|
31
|
+
from hnn_core import neymotin_2020_model
|
|
32
32
|
|
|
33
33
|
# The number of cores may need modifying depending on your current machine.
|
|
34
34
|
n_jobs = 4
|
|
@@ -116,7 +116,7 @@ def summary_func(results):
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
# Initialize the network model and run the batch simulation.
|
|
119
|
-
net =
|
|
119
|
+
net = neymotin_2020_model(mesh_shape=(3, 3))
|
|
120
120
|
batch_simulation = BatchSimulate(net=net,
|
|
121
121
|
set_params=set_params,
|
|
122
122
|
summary_func=summary_func)
|
|
@@ -16,7 +16,7 @@ import os.path as op
|
|
|
16
16
|
# Let us import ``hnn_core``.
|
|
17
17
|
|
|
18
18
|
import hnn_core
|
|
19
|
-
from hnn_core import
|
|
19
|
+
from hnn_core import neymotin_2020_model, simulate_dipole
|
|
20
20
|
|
|
21
21
|
###############################################################################
|
|
22
22
|
# To explore how to modify network connectivity, we will start with simulating
|
|
@@ -25,7 +25,7 @@ from hnn_core import jones_2009_model, simulate_dipole
|
|
|
25
25
|
# explore how it changes with new connections. We first instantiate the
|
|
26
26
|
# network. (Note: Setting ``add_drives_from_params=True`` loads a set of
|
|
27
27
|
# predefined drives without the drives API shown previously).
|
|
28
|
-
net_erp =
|
|
28
|
+
net_erp = neymotin_2020_model(add_drives_from_params=True)
|
|
29
29
|
|
|
30
30
|
###############################################################################
|
|
31
31
|
# Instantiating the network comes with a predefined set of connections that
|
|
@@ -71,7 +71,7 @@ net_erp.cell_response.plot_spikes_raster()
|
|
|
71
71
|
# connections to be specified with either cell names, or the cell IDs (gids)
|
|
72
72
|
# directly.
|
|
73
73
|
def get_network(probability=1.0):
|
|
74
|
-
net =
|
|
74
|
+
net = neymotin_2020_model(add_drives_from_params=True)
|
|
75
75
|
net.clear_connectivity()
|
|
76
76
|
|
|
77
77
|
# Pyramidal cell connections
|
|
@@ -17,14 +17,14 @@ import tempfile
|
|
|
17
17
|
# Let us import ``hnn_core``.
|
|
18
18
|
|
|
19
19
|
import hnn_core
|
|
20
|
-
from hnn_core import read_spikes,
|
|
20
|
+
from hnn_core import read_spikes, neymotin_2020_model, simulate_dipole
|
|
21
21
|
|
|
22
22
|
###############################################################################
|
|
23
23
|
# Now let's build the network. We have used the same weights as in the
|
|
24
24
|
# :ref:`evoked example <sphx_glr_auto_examples_plot_simulate_evoked.py>`.
|
|
25
25
|
import matplotlib.pyplot as plt
|
|
26
26
|
|
|
27
|
-
net =
|
|
27
|
+
net = neymotin_2020_model()
|
|
28
28
|
|
|
29
29
|
###############################################################################
|
|
30
30
|
# ``net`` does not have any driving inputs and only defines the local network
|
|
@@ -15,13 +15,13 @@ This example demonstrates how to animate HNN simulations
|
|
|
15
15
|
import os.path as op
|
|
16
16
|
|
|
17
17
|
import hnn_core
|
|
18
|
-
from hnn_core import
|
|
18
|
+
from hnn_core import neymotin_2020_model, simulate_dipole, read_params
|
|
19
19
|
from hnn_core.network_models import add_erp_drives_to_jones_model
|
|
20
20
|
|
|
21
21
|
###############################################################################
|
|
22
22
|
# We begin by instantiating the network. For this example, we will reduce the
|
|
23
23
|
# number of cells in the network to speed up the simulations.
|
|
24
|
-
net =
|
|
24
|
+
net = neymotin_2020_model(mesh_shape=(3, 3))
|
|
25
25
|
|
|
26
26
|
# Note that we move the cells further apart to allow better visualization of
|
|
27
27
|
# the network (default inplane_distance=1.0 µm).
|
{hnn_core-0.5.1.dev0 → hnn_core-0.6.0}/examples/howto/plot_record_extracellular_potentials.py
RENAMED
|
@@ -21,7 +21,7 @@ placed in and around the HNN network model.
|
|
|
21
21
|
|
|
22
22
|
import matplotlib.pyplot as plt
|
|
23
23
|
|
|
24
|
-
from hnn_core import
|
|
24
|
+
from hnn_core import neymotin_2020_model, simulate_dipole
|
|
25
25
|
from hnn_core.network_models import add_erp_drives_to_jones_model
|
|
26
26
|
|
|
27
27
|
###############################################################################
|
|
@@ -33,7 +33,7 @@ from hnn_core.network_models import add_erp_drives_to_jones_model
|
|
|
33
33
|
# 30 um apart. To drive the network dynamics, we'll use three evoked 'ERP'
|
|
34
34
|
# drives; see the event-related potential (ERP) example for details.
|
|
35
35
|
|
|
36
|
-
net =
|
|
36
|
+
net = neymotin_2020_model()
|
|
37
37
|
add_erp_drives_to_jones_model(net)
|
|
38
38
|
|
|
39
39
|
net.set_cell_positions(inplane_distance=30.)
|
|
@@ -17,7 +17,7 @@ results. Let's dive in!
|
|
|
17
17
|
# -------------------------------------------------
|
|
18
18
|
#
|
|
19
19
|
# Our journey begins with Network A, the source of neural activity. We'll use the
|
|
20
|
-
# `
|
|
20
|
+
# `neymotin_2020_model` to create a realistic neocortical network and simulate it with an
|
|
21
21
|
# evoked drive to generate spike data. This step mimics how a network might produce
|
|
22
22
|
# activity in a real brain region, which we'll later transmit to another network.
|
|
23
23
|
#
|
|
@@ -25,13 +25,13 @@ results. Let's dive in!
|
|
|
25
25
|
# efficient handling.
|
|
26
26
|
import numpy as np
|
|
27
27
|
import matplotlib.pyplot as plt
|
|
28
|
-
from hnn_core import
|
|
28
|
+
from hnn_core import neymotin_2020_model, simulate_dipole, read_spikes
|
|
29
29
|
import os.path as op
|
|
30
30
|
import tempfile
|
|
31
31
|
|
|
32
32
|
# Create and simulate Network A
|
|
33
33
|
print("Creating and simulating Network A...")
|
|
34
|
-
net_A =
|
|
34
|
+
net_A = neymotin_2020_model()
|
|
35
35
|
net_A._params.update({'tstop': 170.0})
|
|
36
36
|
|
|
37
37
|
# Add a drive to generate activity
|
|
@@ -73,7 +73,7 @@ with tempfile.TemporaryDirectory() as tmp_dir:
|
|
|
73
73
|
# We'll also define connection properties to map Network A's pyramidal cells to Network
|
|
74
74
|
# B's layers, ensuring a realistic interaction.
|
|
75
75
|
print("Creating and configuring Network B...")
|
|
76
|
-
net_B =
|
|
76
|
+
net_B = neymotin_2020_model()
|
|
77
77
|
net_B._params.update({'tstop': 225.0})
|
|
78
78
|
|
|
79
79
|
# Extract spike data from first trial and filter for pyramidal cells
|
|
@@ -21,7 +21,7 @@ without the need to install and configure MPI.
|
|
|
21
21
|
import os.path as op
|
|
22
22
|
|
|
23
23
|
import hnn_core
|
|
24
|
-
from hnn_core import simulate_dipole,
|
|
24
|
+
from hnn_core import simulate_dipole, neymotin_2020_model
|
|
25
25
|
|
|
26
26
|
###############################################################################
|
|
27
27
|
# Following :ref:`the alpha example
|
|
@@ -31,13 +31,21 @@ from hnn_core import simulate_dipole, jones_2009_model
|
|
|
31
31
|
# The occurrence of each burst is jittered by a random, normally distributed
|
|
32
32
|
# amount (20 ms standard deviation). We repeat the burst train 10 times, each
|
|
33
33
|
# time with unique randomization.
|
|
34
|
-
net =
|
|
34
|
+
net = neymotin_2020_model()
|
|
35
35
|
|
|
36
|
-
weights_ampa = {
|
|
36
|
+
weights_ampa = {"L2_pyramidal": 5.4e-5, "L5_pyramidal": 5.4e-5}
|
|
37
37
|
net.add_bursty_drive(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
"bursty",
|
|
39
|
+
tstart=50.0,
|
|
40
|
+
burst_rate=10,
|
|
41
|
+
burst_std=20.0,
|
|
42
|
+
numspikes=2,
|
|
43
|
+
spike_isi=10,
|
|
44
|
+
n_drive_cells=10,
|
|
45
|
+
location="distal",
|
|
46
|
+
weights_ampa=weights_ampa,
|
|
47
|
+
event_seed=278,
|
|
48
|
+
)
|
|
41
49
|
|
|
42
50
|
###############################################################################
|
|
43
51
|
# Finally, to simulate we use the
|
|
@@ -47,8 +55,8 @@ net.add_bursty_drive(
|
|
|
47
55
|
# ``openmpi``, which must be installed on the system
|
|
48
56
|
from hnn_core import MPIBackend
|
|
49
57
|
|
|
50
|
-
with MPIBackend(n_procs=2, mpi_cmd=
|
|
51
|
-
dpls = simulate_dipole(net, tstop=310
|
|
58
|
+
with MPIBackend(n_procs=2, mpi_cmd="mpiexec"):
|
|
59
|
+
dpls = simulate_dipole(net, tstop=310.0, n_trials=1)
|
|
52
60
|
|
|
53
61
|
trial_idx = 0
|
|
54
62
|
dpls[trial_idx].plot()
|
|
@@ -26,7 +26,7 @@ import os.path as op
|
|
|
26
26
|
# Let us import hnn_core
|
|
27
27
|
|
|
28
28
|
import hnn_core
|
|
29
|
-
from hnn_core import simulate_dipole,
|
|
29
|
+
from hnn_core import simulate_dipole, neymotin_2020_model
|
|
30
30
|
|
|
31
31
|
###############################################################################
|
|
32
32
|
# Now let's simulate the dipole and plot it. To excite the network, we add a
|
|
@@ -36,7 +36,7 @@ from hnn_core import simulate_dipole, jones_2009_model
|
|
|
36
36
|
# amount (20 ms standard deviation). We repeat the burst train 10 times, each
|
|
37
37
|
# time with unique randomization. The drive is only connected to the
|
|
38
38
|
# :term:`proximal` (dendritic) AMPA synapses on L2/3 and L5 pyramidal neurons.
|
|
39
|
-
net =
|
|
39
|
+
net = neymotin_2020_model()
|
|
40
40
|
|
|
41
41
|
location = 'proximal'
|
|
42
42
|
burst_std = 20
|
|
@@ -14,7 +14,7 @@ of the beta event, and the incoming sensory information.
|
|
|
14
14
|
|
|
15
15
|
# Authors: Nick Tolley <nicholas_tolley@brown.edu>
|
|
16
16
|
|
|
17
|
-
from hnn_core import simulate_dipole, law_2021_model,
|
|
17
|
+
from hnn_core import simulate_dipole, law_2021_model, neymotin_2020_model
|
|
18
18
|
from hnn_core.viz import plot_dipole
|
|
19
19
|
|
|
20
20
|
###############################################################################
|
|
@@ -30,7 +30,7 @@ net = law_2021_model()
|
|
|
30
30
|
# L5 pyramidal cells specifically.
|
|
31
31
|
# We can inspect these properties with the ``net.cell_types`` attribute which
|
|
32
32
|
# contains information on the biophysics and geometry of each cell.
|
|
33
|
-
net_jones =
|
|
33
|
+
net_jones = neymotin_2020_model()
|
|
34
34
|
|
|
35
35
|
jones_rise = net_jones.cell_types['L5_pyramidal']['cell_object'].synapses['gabab']['tau1']
|
|
36
36
|
law_rise = net.cell_types['L5_pyramidal']['cell_object'].synapses['gabab']['tau1']
|
|
@@ -30,13 +30,13 @@ import matplotlib.pyplot as plt
|
|
|
30
30
|
# Let us import hnn_core
|
|
31
31
|
|
|
32
32
|
import hnn_core
|
|
33
|
-
from hnn_core import simulate_dipole,
|
|
33
|
+
from hnn_core import simulate_dipole, neymotin_2020_model
|
|
34
34
|
from hnn_core.viz import plot_dipole
|
|
35
35
|
|
|
36
36
|
###############################################################################
|
|
37
37
|
# Let us first create our default network and visualize the cells
|
|
38
38
|
# inside it.
|
|
39
|
-
net =
|
|
39
|
+
net = neymotin_2020_model()
|
|
40
40
|
net.plot_cells()
|
|
41
41
|
net.cell_types['L5_pyramidal']['cell_object'].plot_morphology()
|
|
42
42
|
|
|
@@ -126,7 +126,7 @@ plot_dipole(dpls, average=False, layer=['L2', 'L5', 'agg'], show=False)
|
|
|
126
126
|
# synchronous and see what happens. This is achieved by setting
|
|
127
127
|
# ``n_drive_cells=1`` and ``cell_specific=False`` when adding each drive.
|
|
128
128
|
|
|
129
|
-
net_sync =
|
|
129
|
+
net_sync = neymotin_2020_model()
|
|
130
130
|
|
|
131
131
|
n_drive_cells=1
|
|
132
132
|
cell_specific=False
|
|
@@ -27,7 +27,7 @@ import os.path as op
|
|
|
27
27
|
# Let us import hnn_core
|
|
28
28
|
|
|
29
29
|
import hnn_core
|
|
30
|
-
from hnn_core import simulate_dipole, read_params,
|
|
30
|
+
from hnn_core import simulate_dipole, read_params, neymotin_2020_model
|
|
31
31
|
|
|
32
32
|
hnn_core_root = op.dirname(hnn_core.__file__)
|
|
33
33
|
|
|
@@ -44,7 +44,7 @@ print(params['gbar_L*'])
|
|
|
44
44
|
# simulate the dipole moment in a single trial (the default value used by
|
|
45
45
|
# ``simulate_dipole`` is ``n_trials=params['N_trials']``).
|
|
46
46
|
|
|
47
|
-
net =
|
|
47
|
+
net = neymotin_2020_model(params)
|
|
48
48
|
|
|
49
49
|
weights_ampa = {'L2_pyramidal': 0.0008, 'L5_pyramidal': 0.0075}
|
|
50
50
|
synaptic_delays = {'L2_pyramidal': 0.1, 'L5_pyramidal': 1.0}
|
|
@@ -144,12 +144,12 @@ plt.show()
|
|
|
144
144
|
# network parameters from ``N20.json`` and instantiate the network.
|
|
145
145
|
|
|
146
146
|
import hnn_core
|
|
147
|
-
from hnn_core import simulate_dipole,
|
|
147
|
+
from hnn_core import simulate_dipole, neymotin_2020_model
|
|
148
148
|
from hnn_core import average_dipoles, JoblibBackend
|
|
149
149
|
|
|
150
150
|
hnn_core_root = op.dirname(hnn_core.__file__)
|
|
151
151
|
params_fname = op.join(hnn_core_root, 'param', 'N20.json')
|
|
152
|
-
net =
|
|
152
|
+
net = neymotin_2020_model(params_fname)
|
|
153
153
|
|
|
154
154
|
###############################################################################
|
|
155
155
|
# To simulate the source of the median nerve evoked response, we add a
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from .dipole import (
|
|
2
|
+
simulate_dipole,
|
|
3
|
+
read_dipole,
|
|
4
|
+
average_dipoles,
|
|
5
|
+
Dipole,
|
|
6
|
+
_read_dipole_txt,
|
|
7
|
+
)
|
|
8
|
+
from .params import Params, read_params, convert_to_json
|
|
9
|
+
from .network import Network, pick_connection
|
|
10
|
+
from .network_models import (
|
|
11
|
+
neymotin_2020_model,
|
|
12
|
+
jones_2009_model,
|
|
13
|
+
law_2021_model,
|
|
14
|
+
calcium_model,
|
|
15
|
+
)
|
|
16
|
+
from .cell import Cell
|
|
17
|
+
from .cell_response import CellResponse, read_spikes
|
|
18
|
+
from .cells_default import pyramidal, basket
|
|
19
|
+
from .parallel_backends import MPIBackend, JoblibBackend
|
|
20
|
+
from .hnn_io import (
|
|
21
|
+
dict_to_network,
|
|
22
|
+
network_to_dict,
|
|
23
|
+
read_network_configuration,
|
|
24
|
+
write_network_configuration,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
__version__ = "0.6.0"
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
import json
|
|
31
|
+
from pathlib import Path
|
|
32
|
+
from textwrap import dedent
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def _print_survey_link():
|
|
36
|
+
"""Print the survey link, unless the "seen" file already exists."""
|
|
37
|
+
storage_dir = Path(__file__).parent
|
|
38
|
+
storage_file = storage_dir / "survey_seen.json"
|
|
39
|
+
|
|
40
|
+
if not storage_file.exists():
|
|
41
|
+
print(
|
|
42
|
+
dedent("""
|
|
43
|
+
-------------------------------------------------------------------------------------------------------
|
|
44
|
+
Thank you for installing HNN-Core! Please fill out our survey at:
|
|
45
|
+
|
|
46
|
+
https://docs.google.com/forms/d/e/1FAIpQLSfN2F4IkGATs6cy1QBO78C6QJqvm9y14TqsCUsuR4Rrkmr1Mg/viewform
|
|
47
|
+
|
|
48
|
+
Filling out our survey REALLY helps us to provide support and maintenance for HNN-Core.
|
|
49
|
+
|
|
50
|
+
This message should only display once, after you have first installed HNN-Core. Happy modeling!
|
|
51
|
+
-------------------------------------------------------------------------------------------------------
|
|
52
|
+
""")
|
|
53
|
+
)
|
|
54
|
+
with open(storage_file, "w") as f:
|
|
55
|
+
json.dump({"survey_seen": True}, f)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
_print_survey_link()
|
|
@@ -5,14 +5,16 @@
|
|
|
5
5
|
# Ryan Thorpe <ryan_thorpe@brown.edu>
|
|
6
6
|
# Mainak Jas <mjas@mgh.harvard.edu>
|
|
7
7
|
|
|
8
|
-
import numpy as np
|
|
9
8
|
import os
|
|
9
|
+
from itertools import product
|
|
10
|
+
|
|
11
|
+
import numpy as np
|
|
10
12
|
from joblib import Parallel, delayed, parallel_config
|
|
11
13
|
|
|
12
14
|
from .network import Network
|
|
13
15
|
from .externals.mne import _validate_type, _check_option
|
|
14
16
|
from .dipole import simulate_dipole
|
|
15
|
-
from .network_models import
|
|
17
|
+
from .network_models import neymotin_2020_model
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
class BatchSimulate(object):
|
|
@@ -31,11 +33,11 @@ class BatchSimulate(object):
|
|
|
31
33
|
The network model to use for simulations. Examples include the
|
|
32
34
|
returned value of the following functions:
|
|
33
35
|
|
|
34
|
-
- `
|
|
36
|
+
- `neymotin_2020_model`: A network model based on Jones et al. (2009).
|
|
35
37
|
- `law_2021_model`: A network model based on Law et al. (2021).
|
|
36
38
|
- `calcium_model`: A network model incorporating calcium dynamics.
|
|
37
39
|
|
|
38
|
-
Default is ``
|
|
40
|
+
Default is ``neymotin_2020_model()``.
|
|
39
41
|
tstop : float, optional
|
|
40
42
|
The stop time for the simulation. Default is 170 ms.
|
|
41
43
|
dt : float, optional
|
|
@@ -105,7 +107,7 @@ class BatchSimulate(object):
|
|
|
105
107
|
def __init__(
|
|
106
108
|
self,
|
|
107
109
|
set_params,
|
|
108
|
-
net=
|
|
110
|
+
net=neymotin_2020_model(),
|
|
109
111
|
tstop=170,
|
|
110
112
|
dt=0.025,
|
|
111
113
|
n_trials=1,
|
|
@@ -168,6 +170,7 @@ class BatchSimulate(object):
|
|
|
168
170
|
self.postproc = postproc
|
|
169
171
|
self.clear_cache = clear_cache
|
|
170
172
|
self.summary_func = summary_func
|
|
173
|
+
self._verbose = True
|
|
171
174
|
|
|
172
175
|
def run(
|
|
173
176
|
self,
|
|
@@ -176,7 +179,7 @@ class BatchSimulate(object):
|
|
|
176
179
|
combinations=True,
|
|
177
180
|
n_jobs=1,
|
|
178
181
|
backend="loky",
|
|
179
|
-
verbose=
|
|
182
|
+
verbose=True,
|
|
180
183
|
):
|
|
181
184
|
"""Run batch simulations.
|
|
182
185
|
|
|
@@ -197,8 +200,8 @@ class BatchSimulate(object):
|
|
|
197
200
|
`multiprocessing`, or `dask`. WARNING: currently only `loky` is
|
|
198
201
|
completely operationable; all other backends are in
|
|
199
202
|
development. Default is `loky`.
|
|
200
|
-
verbose :
|
|
201
|
-
|
|
203
|
+
verbose : bool
|
|
204
|
+
If True, print build steps and simulation progress to console. Default: True.
|
|
202
205
|
|
|
203
206
|
Returns
|
|
204
207
|
-------
|
|
@@ -217,7 +220,8 @@ class BatchSimulate(object):
|
|
|
217
220
|
_check_option(
|
|
218
221
|
"backend", backend, ["loky", "threading", "multiprocessing", "dask"]
|
|
219
222
|
)
|
|
220
|
-
_validate_type(verbose, types=
|
|
223
|
+
_validate_type(verbose, types=(bool,), item_name="verbose")
|
|
224
|
+
self._verbose = verbose
|
|
221
225
|
|
|
222
226
|
param_combinations = self._generate_param_combinations(param_grid, combinations)
|
|
223
227
|
total_sims = len(param_combinations)
|
|
@@ -232,7 +236,6 @@ class BatchSimulate(object):
|
|
|
232
236
|
param_combinations[start_idx:end_idx],
|
|
233
237
|
n_jobs=n_jobs,
|
|
234
238
|
backend=backend,
|
|
235
|
-
verbose=verbose,
|
|
236
239
|
)
|
|
237
240
|
|
|
238
241
|
if self.save_outputs:
|
|
@@ -261,7 +264,6 @@ class BatchSimulate(object):
|
|
|
261
264
|
param_combinations,
|
|
262
265
|
n_jobs=1,
|
|
263
266
|
backend="loky",
|
|
264
|
-
verbose=50,
|
|
265
267
|
):
|
|
266
268
|
"""Simulate a batch of parameter sets in parallel.
|
|
267
269
|
|
|
@@ -276,8 +278,6 @@ class BatchSimulate(object):
|
|
|
276
278
|
`multiprocessing`, or `dask`. WARNING: currently only `loky` is
|
|
277
279
|
completely operationable; all other backends are in
|
|
278
280
|
development. Default is `loky`.
|
|
279
|
-
verbose : int, optional
|
|
280
|
-
The verbosity level for parallel execution. Default is 50.
|
|
281
281
|
|
|
282
282
|
Returns
|
|
283
283
|
-------
|
|
@@ -297,10 +297,9 @@ class BatchSimulate(object):
|
|
|
297
297
|
_check_option(
|
|
298
298
|
"backend", backend, ["loky", "threading", "multiprocessing", "dask"]
|
|
299
299
|
)
|
|
300
|
-
_validate_type(verbose, types="int", item_name="verbose")
|
|
301
300
|
|
|
302
301
|
with parallel_config(backend=backend):
|
|
303
|
-
res = Parallel(n_jobs=n_jobs
|
|
302
|
+
res = Parallel(n_jobs=n_jobs)(
|
|
304
303
|
delayed(self._run_single_sim)(params) for params in param_combinations
|
|
305
304
|
)
|
|
306
305
|
return res
|
|
@@ -337,6 +336,7 @@ class BatchSimulate(object):
|
|
|
337
336
|
record_vsec=self.record_vsec,
|
|
338
337
|
record_isec=self.record_isec,
|
|
339
338
|
postproc=self.postproc,
|
|
339
|
+
verbose=self._verbose,
|
|
340
340
|
)
|
|
341
341
|
results["dpl"] = dpl
|
|
342
342
|
|
|
@@ -378,7 +378,6 @@ class BatchSimulate(object):
|
|
|
378
378
|
param_combinations: list
|
|
379
379
|
List of parameter combinations.
|
|
380
380
|
"""
|
|
381
|
-
from itertools import product
|
|
382
381
|
|
|
383
382
|
keys, values = zip(*param_grid.items())
|
|
384
383
|
if combinations:
|