onmep 0.1.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.
- onmep-0.1.0/LICENSE +21 -0
- onmep-0.1.0/PKG-INFO +98 -0
- onmep-0.1.0/README.md +24 -0
- onmep-0.1.0/pyproject.toml +73 -0
- onmep-0.1.0/setup.cfg +4 -0
- onmep-0.1.0/src/onmep/__init__.py +8 -0
- onmep-0.1.0/src/onmep/__main__.py +0 -0
- onmep-0.1.0/src/onmep/agent/__init__.py +5 -0
- onmep-0.1.0/src/onmep/agent/base_agent.py +917 -0
- onmep-0.1.0/src/onmep/agent/generative.py +120 -0
- onmep-0.1.0/src/onmep/checkpoint.py +81 -0
- onmep-0.1.0/src/onmep/environment/__init__.py +5 -0
- onmep-0.1.0/src/onmep/environment/base_environment.py +136 -0
- onmep-0.1.0/src/onmep/structures.py +336 -0
- onmep-0.1.0/src/onmep/telemetry.py +62 -0
- onmep-0.1.0/src/onmep.egg-info/PKG-INFO +98 -0
- onmep-0.1.0/src/onmep.egg-info/SOURCES.txt +18 -0
- onmep-0.1.0/src/onmep.egg-info/dependency_links.txt +1 -0
- onmep-0.1.0/src/onmep.egg-info/requires.txt +28 -0
- onmep-0.1.0/src/onmep.egg-info/top_level.txt +1 -0
onmep-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 hbmep
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
onmep-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: onmep
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Online adaptive acquisition of motor-evoked potential recruitment curves
|
|
5
|
+
Author-email: Vishweshwar Tyagi <vt2353@columbia.edu>, "James R. McIntosh" <jrm2263@cumc.columbia.edu>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 hbmep
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/hbmep/onmep
|
|
29
|
+
Project-URL: Bug Tracker, https://github.com/hbmep/onmep
|
|
30
|
+
Classifier: Development Status :: 3 - Alpha
|
|
31
|
+
Classifier: Intended Audience :: Science/Research
|
|
32
|
+
Classifier: Intended Audience :: Developers
|
|
33
|
+
Classifier: Topic :: Software Development
|
|
34
|
+
Classifier: Topic :: Scientific/Engineering
|
|
35
|
+
Classifier: Programming Language :: Python :: 3
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
38
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
39
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
40
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
41
|
+
Classifier: Operating System :: POSIX
|
|
42
|
+
Classifier: Operating System :: Unix
|
|
43
|
+
Classifier: Operating System :: MacOS
|
|
44
|
+
Requires-Python: >=3.11
|
|
45
|
+
Description-Content-Type: text/markdown
|
|
46
|
+
License-File: LICENSE
|
|
47
|
+
Requires-Dist: hbmep>=0.8.0
|
|
48
|
+
Requires-Dist: numpy<2.0,>=1.24.2
|
|
49
|
+
Requires-Dist: jax>=0.4.24
|
|
50
|
+
Requires-Dist: numpyro>=0.13.2
|
|
51
|
+
Requires-Dist: pandas>=2.0.2
|
|
52
|
+
Requires-Dist: scikit-learn>=1.2.1
|
|
53
|
+
Requires-Dist: arviz>=0.18.0
|
|
54
|
+
Requires-Dist: matplotlib>=3.7.0
|
|
55
|
+
Requires-Dist: seaborn>=0.12.2
|
|
56
|
+
Requires-Dist: joblib>=1.3.2
|
|
57
|
+
Requires-Dist: pylsl>=1.18.1
|
|
58
|
+
Requires-Dist: xmltodict>=1.0.2
|
|
59
|
+
Requires-Dist: pydantic>=2.13.1
|
|
60
|
+
Provides-Extra: dev
|
|
61
|
+
Requires-Dist: notebook>=7.3.2; extra == "dev"
|
|
62
|
+
Requires-Dist: pytest>=7.4.0; extra == "dev"
|
|
63
|
+
Requires-Dist: pytest-pycodestyle>=2.3.1; extra == "dev"
|
|
64
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
|
|
65
|
+
Requires-Dist: Sphinx==7.3.7; extra == "dev"
|
|
66
|
+
Requires-Dist: sphinx-autobuild==2024.04.16; extra == "dev"
|
|
67
|
+
Requires-Dist: sphinx-book-theme==1.1.3; extra == "dev"
|
|
68
|
+
Requires-Dist: sphinxcontrib.bibtex==2.6.2; extra == "dev"
|
|
69
|
+
Requires-Dist: sphinx-copybutton==0.5.2; extra == "dev"
|
|
70
|
+
Requires-Dist: myst_nb==1.1.0; extra == "dev"
|
|
71
|
+
Provides-Extra: cuda12
|
|
72
|
+
Requires-Dist: jax[cuda12]>=0.4.24; extra == "cuda12"
|
|
73
|
+
Dynamic: license-file
|
|
74
|
+
|
|
75
|
+
# onMEP
|
|
76
|
+
|
|
77
|
+
onMEP is a Python library for online adaptive acquisition of motor-evoked potential (MEP) recruitment curves.
|
|
78
|
+
|
|
79
|
+
[](https://doi.org/10.1016/j.brs.2025.09.008)
|
|
80
|
+
[](http://doi.org/10.48550/arXiv.2407.08709)
|
|
81
|
+
|
|
82
|
+
## Citation
|
|
83
|
+
|
|
84
|
+
Please cite [Tyagi et al., 2025](https://doi.org/10.1016/j.brs.2025.09.008) if you find this code useful in your research. The BibTeX entry for the paper is:
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
@article{tyagi_hierarchical_2025,
|
|
88
|
+
title = {Hierarchical {Bayesian} estimation of motor-evoked potential recruitment curves yields accurate and robust estimates},
|
|
89
|
+
author = {Tyagi, Vishweshwar and Murray, Lynda M. and Asan, Ahmet S. and Mandigo, Christopher and Virk, Michael S. and Harel, Noam Y. and Carmel, Jason B. and McIntosh, James R.},
|
|
90
|
+
journal = {Brain Stimulation},
|
|
91
|
+
year = {2025},
|
|
92
|
+
doi = {10.1016/j.brs.2025.09.008},
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## License
|
|
97
|
+
|
|
98
|
+
onMEP is free software made available under the MIT License. For details see the LICENSE file.
|
onmep-0.1.0/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# onMEP
|
|
2
|
+
|
|
3
|
+
onMEP is a Python library for online adaptive acquisition of motor-evoked potential (MEP) recruitment curves.
|
|
4
|
+
|
|
5
|
+
[](https://doi.org/10.1016/j.brs.2025.09.008)
|
|
6
|
+
[](http://doi.org/10.48550/arXiv.2407.08709)
|
|
7
|
+
|
|
8
|
+
## Citation
|
|
9
|
+
|
|
10
|
+
Please cite [Tyagi et al., 2025](https://doi.org/10.1016/j.brs.2025.09.008) if you find this code useful in your research. The BibTeX entry for the paper is:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
@article{tyagi_hierarchical_2025,
|
|
14
|
+
title = {Hierarchical {Bayesian} estimation of motor-evoked potential recruitment curves yields accurate and robust estimates},
|
|
15
|
+
author = {Tyagi, Vishweshwar and Murray, Lynda M. and Asan, Ahmet S. and Mandigo, Christopher and Virk, Michael S. and Harel, Noam Y. and Carmel, Jason B. and McIntosh, James R.},
|
|
16
|
+
journal = {Brain Stimulation},
|
|
17
|
+
year = {2025},
|
|
18
|
+
doi = {10.1016/j.brs.2025.09.008},
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## License
|
|
23
|
+
|
|
24
|
+
onMEP is free software made available under the MIT License. For details see the LICENSE file.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "onmep"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Online adaptive acquisition of motor-evoked potential recruitment curves"
|
|
9
|
+
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = { file = "LICENSE" }
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Vishweshwar Tyagi", email = "vt2353@columbia.edu" },
|
|
14
|
+
{ name = "James R. McIntosh", email = "jrm2263@cumc.columbia.edu" }
|
|
15
|
+
]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Intended Audience :: Science/Research",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"Topic :: Software Development",
|
|
21
|
+
"Topic :: Scientific/Engineering",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
26
|
+
"License :: OSI Approved :: MIT License",
|
|
27
|
+
"Operating System :: Microsoft :: Windows",
|
|
28
|
+
"Operating System :: POSIX",
|
|
29
|
+
"Operating System :: Unix",
|
|
30
|
+
"Operating System :: MacOS"
|
|
31
|
+
]
|
|
32
|
+
dependencies = [
|
|
33
|
+
"hbmep>=0.8.0",
|
|
34
|
+
"numpy>=1.24.2,<2.0",
|
|
35
|
+
"jax>=0.4.24",
|
|
36
|
+
"numpyro>=0.13.2",
|
|
37
|
+
"pandas>=2.0.2",
|
|
38
|
+
"scikit-learn>=1.2.1",
|
|
39
|
+
"arviz>=0.18.0",
|
|
40
|
+
"matplotlib>=3.7.0",
|
|
41
|
+
"seaborn>=0.12.2",
|
|
42
|
+
"joblib>=1.3.2",
|
|
43
|
+
"pylsl>=1.18.1",
|
|
44
|
+
"xmltodict>=1.0.2",
|
|
45
|
+
"pydantic>=2.13.1",
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
[project.optional-dependencies]
|
|
49
|
+
dev = [
|
|
50
|
+
"notebook>=7.3.2",
|
|
51
|
+
# Testing
|
|
52
|
+
"pytest>=7.4.0",
|
|
53
|
+
"pytest-pycodestyle>=2.3.1",
|
|
54
|
+
"pytest-cov>=4.1.0",
|
|
55
|
+
# Docs
|
|
56
|
+
"Sphinx==7.3.7",
|
|
57
|
+
"sphinx-autobuild==2024.04.16",
|
|
58
|
+
"sphinx-book-theme==1.1.3",
|
|
59
|
+
"sphinxcontrib.bibtex==2.6.2",
|
|
60
|
+
"sphinx-copybutton==0.5.2",
|
|
61
|
+
"myst_nb==1.1.0"
|
|
62
|
+
]
|
|
63
|
+
cuda12 = ["jax[cuda12]>=0.4.24"]
|
|
64
|
+
|
|
65
|
+
[tool.pytest.ini_options]
|
|
66
|
+
minversion = "6.0"
|
|
67
|
+
addopts = "-v --color=yes --junit-xml=out/junit/junit.xml --pycodestyle src --cov --cov-report term-missing --doctest-modules"
|
|
68
|
+
junit_family = "xunit2"
|
|
69
|
+
testpaths = ["tests"]
|
|
70
|
+
|
|
71
|
+
[project.urls]
|
|
72
|
+
"Homepage" = "https://github.com/hbmep/onmep"
|
|
73
|
+
"Bug Tracker" = "https://github.com/hbmep/onmep"
|
onmep-0.1.0/setup.cfg
ADDED
|
File without changes
|