etho-python 0.22.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.
Files changed (58) hide show
  1. etho_python-0.22.0/.github/workflows/static.yml +42 -0
  2. etho_python-0.22.0/.gitignore +105 -0
  3. etho_python-0.22.0/PKG-INFO +49 -0
  4. etho_python-0.22.0/README.md +3 -0
  5. etho_python-0.22.0/pyproject.toml +39 -0
  6. etho_python-0.22.0/src/etho/__init__.py +9 -0
  7. etho_python-0.22.0/src/etho/app.py +569 -0
  8. etho_python-0.22.0/src/etho/assets/etho_icon1_pipeline_dark.svg +23 -0
  9. etho_python-0.22.0/src/etho/assets/etho_icon1_pipeline_light.svg +30 -0
  10. etho_python-0.22.0/src/etho/cli.py +215 -0
  11. etho_python-0.22.0/src/etho/client.py +384 -0
  12. etho_python-0.22.0/src/etho/services/ANAZeroService.py +123 -0
  13. etho_python-0.22.0/src/etho/services/BLTZeroService.py +108 -0
  14. etho_python-0.22.0/src/etho/services/DAQZeroService.py +326 -0
  15. etho_python-0.22.0/src/etho/services/DLPZeroService.py +240 -0
  16. etho_python-0.22.0/src/etho/services/GCMZeroService.py +271 -0
  17. etho_python-0.22.0/src/etho/services/GOVZeroService.py +231 -0
  18. etho_python-0.22.0/src/etho/services/NICounterZeroService.py +92 -0
  19. etho_python-0.22.0/src/etho/services/NITriggerZeroService.py +120 -0
  20. etho_python-0.22.0/src/etho/services/TemplateZeroService.py +98 -0
  21. etho_python-0.22.0/src/etho/services/ZeroService.py +272 -0
  22. etho_python-0.22.0/src/etho/services/__init__.py +0 -0
  23. etho_python-0.22.0/src/etho/services/callbacks/__init__.py +19 -0
  24. etho_python-0.22.0/src/etho/services/callbacks/_base.py +92 -0
  25. etho_python-0.22.0/src/etho/services/callbacks/_image.py +798 -0
  26. etho_python-0.22.0/src/etho/services/callbacks/_trace.py +456 -0
  27. etho_python-0.22.0/src/etho/services/camera/__init__.py +13 -0
  28. etho_python-0.22.0/src/etho/services/camera/base.py +164 -0
  29. etho_python-0.22.0/src/etho/services/camera/basler.py +201 -0
  30. etho_python-0.22.0/src/etho/services/camera/dummy.py +139 -0
  31. etho_python-0.22.0/src/etho/services/camera/hamamatsu.py +133 -0
  32. etho_python-0.22.0/src/etho/services/camera/spinnaker.py +317 -0
  33. etho_python-0.22.0/src/etho/services/camera/ximea.py +167 -0
  34. etho_python-0.22.0/src/etho/services/daq/IOTask.py +311 -0
  35. etho_python-0.22.0/src/etho/services/daq/ai.py +174 -0
  36. etho_python-0.22.0/src/etho/services/dlp/dlp_make_warpfiles.py +131 -0
  37. etho_python-0.22.0/src/etho/services/dlp/dlp_runners.py +238 -0
  38. etho_python-0.22.0/src/etho/services/utils/__init__.py +0 -0
  39. etho_python-0.22.0/src/etho/services/utils/concurrent_task.py +236 -0
  40. etho_python-0.22.0/src/etho/services/utils/log_exceptions.py +39 -0
  41. etho_python-0.22.0/src/etho/utils/__init__.py +0 -0
  42. etho_python-0.22.0/src/etho/utils/calibration.py +88 -0
  43. etho_python-0.22.0/src/etho/utils/config.py +41 -0
  44. etho_python-0.22.0/src/etho/utils/runner.py +121 -0
  45. etho_python-0.22.0/src/etho/utils/shuffled_cycle.py +45 -0
  46. etho_python-0.22.0/src/etho/utils/sound.py +336 -0
  47. etho_python-0.22.0/src/etho/utils/tui.py +105 -0
  48. etho_python-0.22.0/src/etho/utils/zeroclient.py +95 -0
  49. etho_python-0.22.0/tests/test_config.py +8 -0
  50. etho_python-0.22.0/tests/test_config.yaml +17 -0
  51. etho_python-0.22.0/tests/test_gov_service.py +280 -0
  52. etho_python-0.22.0/tests/test_import.py +30 -0
  53. etho_python-0.22.0/tests/test_services.py +12 -0
  54. etho_python-0.22.0/tests/test_shuffled_cycle.py +12 -0
  55. etho_python-0.22.0/tests/test_sound.py +22 -0
  56. etho_python-0.22.0/tests/test_sound_playlist_mirrorled.txt +2 -0
  57. etho_python-0.22.0/tests/test_sound_playlist_mono.txt +4 -0
  58. etho_python-0.22.0/tests/test_sound_playlist_stereo.txt +4 -0
@@ -0,0 +1,42 @@
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name: Deploy static content to Pages
3
+
4
+ on:
5
+ # Runs on pushes targeting the default branch
6
+ push:
7
+ branches: ["gh_pages"]
8
+
9
+ # Allows you to run this workflow manually from the Actions tab
10
+ workflow_dispatch:
11
+
12
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
+ permissions:
14
+ contents: read
15
+ pages: write
16
+ id-token: write
17
+
18
+ # Allow one concurrent deployment
19
+ concurrency:
20
+ group: "pages"
21
+ cancel-in-progress: true
22
+
23
+ jobs:
24
+ # Single deploy job since we're just deploying
25
+ deploy:
26
+ environment:
27
+ name: github-pages
28
+ url: ${{ steps.deployment.outputs.page_url }}
29
+ runs-on: ubuntu-latest
30
+ steps:
31
+ - name: Checkout
32
+ uses: actions/checkout@v3
33
+ - name: Setup Pages
34
+ uses: actions/configure-pages@v2
35
+ - name: Upload artifact
36
+ uses: actions/upload-pages-artifact@v1
37
+ with:
38
+ # Upload entire repository
39
+ path: '.'
40
+ - name: Deploy to GitHub Pages
41
+ id: deployment
42
+ uses: actions/deploy-pages@v1
@@ -0,0 +1,105 @@
1
+ analysis.egg-info
2
+ .snakemake
3
+
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ env/
15
+ build/
16
+ develop-eggs/
17
+ dist/
18
+ downloads/
19
+ eggs/
20
+ .eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ *.egg-info/
27
+ .installed.cfg
28
+ *.egg
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *,cover
49
+ .hypothesis/
50
+
51
+ # Translations
52
+ *.mo
53
+ *.pot
54
+
55
+ # Django stuff:
56
+ *.log
57
+ local_settings.py
58
+
59
+ # Flask stuff:
60
+ instance/
61
+ .webassets-cache
62
+
63
+ # Scrapy stuff:
64
+ .scrapy
65
+
66
+ # Sphinx documentation
67
+ docs/_build/
68
+ _docs
69
+ docs
70
+
71
+ # PyBuilder
72
+ target/
73
+
74
+ # IPython Notebook
75
+ .ipynb_checkpoints
76
+
77
+ # pyenv
78
+ .python-version
79
+
80
+ # celery beat schedule file
81
+ celerybeat-schedule
82
+
83
+ # dotenv
84
+ .env
85
+
86
+ # virtualenv
87
+ .venv/
88
+ venv/
89
+ ENV/
90
+
91
+ .mypy*
92
+
93
+ # Spyder project settings
94
+ .spyderproject
95
+
96
+ # Rope project settings
97
+ .ropeproject
98
+
99
+ .vscode
100
+ *cache
101
+ scratch
102
+ _docs
103
+ src.old
104
+
105
+ tests/ethoconfig
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: etho-python
3
+ Version: 0.22.0
4
+ Summary: etho
5
+ Author-email: Jan Clemens <clemensjan@googlemail.com>
6
+ Requires-Python: >3.6
7
+ Description-Content-Type: text/markdown
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Requires-Dist: numpy
10
+ Requires-Dist: scipy
11
+ Requires-Dist: h5py
12
+ Requires-Dist: opencv-python-headless
13
+ Requires-Dist: bleak
14
+ Requires-Dist: pandas
15
+ Requires-Dist: pyzmq
16
+ Requires-Dist: gevent
17
+ Requires-Dist: future
18
+ Requires-Dist: pillow
19
+ Requires-Dist: msgpack-python
20
+ Requires-Dist: pyyaml
21
+ Requires-Dist: ipython
22
+ Requires-Dist: defopt
23
+ Requires-Dist: msgpack-numpy
24
+ Requires-Dist: rich
25
+ Requires-Dist: psutil
26
+ Requires-Dist: pydaqmx
27
+ Requires-Dist: pyqtgraph
28
+ Requires-Dist: qtpy
29
+ Requires-Dist: PySide6-Essentials
30
+ Requires-Dist: zarr
31
+ Requires-Dist: pytest ; extra == "dev"
32
+ Requires-Dist: flit>=3.2 ; extra == "dev"
33
+ Requires-Dist: sphinx ; extra == "doc"
34
+ Requires-Dist: furo ; extra == "doc"
35
+ Requires-Dist: sphinx-inline-tabs ; extra == "doc"
36
+ Requires-Dist: sphinx-copybutton ; extra == "doc"
37
+ Requires-Dist: ghp-import ; extra == "doc"
38
+ Requires-Dist: myst-nb ; extra == "doc"
39
+ Requires-Dist: sphinx-panels ; extra == "doc"
40
+ Requires-Dist: sphinxcontrib-images ; extra == "doc"
41
+ Project-URL: documentation, https://janclemenslab.org/etho/
42
+ Project-URL: source, https://github.com/janclemenslab/etho
43
+ Provides-Extra: dev
44
+ Provides-Extra: doc
45
+
46
+ # Etho
47
+
48
+ See [docs](https://janclemenslab.org/etho) for information on how to [install](https://janclemenslab.org/etho/install.html) and use.
49
+
@@ -0,0 +1,3 @@
1
+ # Etho
2
+
3
+ See [docs](https://janclemenslab.org/etho) for information on how to [install](https://janclemenslab.org/etho/install.html) and use.
@@ -0,0 +1,39 @@
1
+ [build-system]
2
+ requires = ["flit_core >=3.2,<4"]
3
+ build-backend = "flit_core.buildapi"
4
+
5
+ [project]
6
+ name = "etho-python"
7
+ authors = [
8
+ {name = "Jan Clemens", email = "clemensjan@googlemail.com"},
9
+ ]
10
+ classifiers = ["License :: OSI Approved :: MIT License"]
11
+ dynamic = ["description"]
12
+ requires-python = ">3.6"
13
+ dependencies = ['numpy', 'scipy', 'h5py', 'opencv-python-headless', 'bleak',
14
+ 'pandas', 'pyzmq', 'gevent', 'future', 'pillow', 'msgpack-python',
15
+ 'pyyaml', 'ipython', 'defopt', 'msgpack-numpy', 'rich', 'psutil',
16
+ 'pydaqmx', 'pyqtgraph', 'qtpy', 'PySide6-Essentials', 'zarr']
17
+ readme= "README.md"
18
+ version="0.22.0"
19
+
20
+ [project.scripts]
21
+ etho = "etho.cli:main"
22
+
23
+ [project.optional-dependencies]
24
+ dev = ["pytest", "flit>=3.2"]
25
+ doc = ["sphinx", "furo", "sphinx-inline-tabs", "sphinx-copybutton", "ghp-import", "myst-nb", "sphinx-panels", "sphinxcontrib-images"]
26
+
27
+ [project.urls]
28
+ source = "https://github.com/janclemenslab/etho"
29
+ documentation = "https://janclemenslab.org/etho/"
30
+
31
+ [tool.flit.module]
32
+ name = "etho"
33
+
34
+ [tool.pytest.ini_options]
35
+ minversion = "6.0"
36
+ testpaths = ["tests",]
37
+
38
+ [tool.ruff]
39
+ line-length = 196
@@ -0,0 +1,9 @@
1
+ """etho"""
2
+
3
+ # load global config on import
4
+ try:
5
+ from .utils.config import readconfig
6
+
7
+ config = readconfig()
8
+ except FileNotFoundError as e:
9
+ print("No configuration file found. Run `etho init`")