ephys-link 2.0.0__py3-none-any.whl → 2.0.0b1__py3-none-any.whl
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.
- ephys_link/__about__.py +1 -1
- ephys_link/__main__.py +43 -51
- ephys_link/back_end/platform_handler.py +298 -315
- ephys_link/back_end/server.py +200 -274
- ephys_link/bindings/{fake_binding.py → fake_bindings.py} +54 -84
- ephys_link/bindings/ump_4_bindings.py +127 -0
- ephys_link/front_end/cli.py +98 -104
- ephys_link/front_end/gui.py +215 -204
- ephys_link/resources/CP210xManufacturing.dll +0 -0
- ephys_link/resources/NstMotorCtrl.dll +0 -0
- ephys_link/resources/SiUSBXp.dll +0 -0
- ephys_link/{utils/base_binding.py → util/base_bindings.py} +133 -176
- ephys_link/util/common.py +121 -0
- ephys_link/util/console.py +112 -0
- ephys_link-2.0.0b1.dist-info/METADATA +166 -0
- ephys_link-2.0.0b1.dist-info/RECORD +25 -0
- {ephys_link-2.0.0.dist-info → ephys_link-2.0.0b1.dist-info}/WHEEL +1 -1
- {ephys_link-2.0.0.dist-info → ephys_link-2.0.0b1.dist-info}/licenses/LICENSE +674 -674
- ephys_link/bindings/mpm_binding.py +0 -315
- ephys_link/bindings/ump_4_binding.py +0 -157
- ephys_link/utils/console.py +0 -127
- ephys_link/utils/constants.py +0 -23
- ephys_link/utils/converters.py +0 -86
- ephys_link/utils/startup.py +0 -65
- ephys_link-2.0.0.dist-info/METADATA +0 -91
- ephys_link-2.0.0.dist-info/RECORD +0 -25
- /ephys_link/{utils → util}/__init__.py +0 -0
- {ephys_link-2.0.0.dist-info → ephys_link-2.0.0b1.dist-info}/entry_points.txt +0 -0
ephys_link/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.0.
|
|
1
|
+
__version__ = "2.0.0b1"
|
ephys_link/__main__.py
CHANGED
|
@@ -1,51 +1,43 @@
|
|
|
1
|
-
"""Ephys Link entry point.
|
|
2
|
-
|
|
3
|
-
Responsible for gathering launch options, instantiating the appropriate interface, and starting the application.
|
|
4
|
-
|
|
5
|
-
Usage:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
|
|
14
|
-
from
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
#
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
#
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
#
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
#
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
_ = add_hotkey("ctrl+alt+shift+q", lambda: run(platform_handler.emergency_stop()))
|
|
45
|
-
|
|
46
|
-
# 6. Start the server.
|
|
47
|
-
Server(options, platform_handler, console).launch()
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if __name__ == "__main__":
|
|
51
|
-
main()
|
|
1
|
+
"""Ephys Link entry point.
|
|
2
|
+
|
|
3
|
+
Responsible for gathering launch options, instantiating the appropriate interface, and starting the application.
|
|
4
|
+
|
|
5
|
+
Usage: call main() to start.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from sys import argv
|
|
9
|
+
|
|
10
|
+
from ephys_link.back_end.platform_handler import PlatformHandler
|
|
11
|
+
from ephys_link.back_end.server import Server
|
|
12
|
+
from ephys_link.front_end.cli import CLI
|
|
13
|
+
from ephys_link.front_end.gui import GUI
|
|
14
|
+
from ephys_link.util.console import Console
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def main() -> None:
|
|
18
|
+
"""Ephys Link entry point.
|
|
19
|
+
|
|
20
|
+
1. Get options via CLI or GUI.
|
|
21
|
+
2. Instantiate the Console and make it globally accessible.
|
|
22
|
+
3. Instantiate the Platform Handler with the appropriate platform bindings.
|
|
23
|
+
4. Instantiate the Emergency Stop service.
|
|
24
|
+
5. Start the server.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
# 1. Get options via CLI or GUI (if no CLI options are provided).
|
|
28
|
+
options = CLI().parse_args() if len(argv) > 1 else GUI().get_options()
|
|
29
|
+
|
|
30
|
+
# 2. Instantiate the Console and make it globally accessible.
|
|
31
|
+
console = Console(enable_debug=options.debug)
|
|
32
|
+
|
|
33
|
+
# 3. Instantiate the Platform Handler with the appropriate platform bindings.
|
|
34
|
+
platform_handler = PlatformHandler(options.type, console)
|
|
35
|
+
|
|
36
|
+
# 4. Instantiate the Emergency Stop service.
|
|
37
|
+
|
|
38
|
+
# 5. Start the server.
|
|
39
|
+
Server(options, platform_handler, console).launch()
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
if __name__ == "__main__":
|
|
43
|
+
main()
|