mesofield 0.3.2b0__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 (140) hide show
  1. mesofield-0.3.2b0/.github/release.yml +8 -0
  2. mesofield-0.3.2b0/.github/workflows/docs.yml +44 -0
  3. mesofield-0.3.2b0/.github/workflows/publish.yml +64 -0
  4. mesofield-0.3.2b0/.github/workflows/release.yml +25 -0
  5. mesofield-0.3.2b0/.gitignore +191 -0
  6. mesofield-0.3.2b0/LICENSE +21 -0
  7. mesofield-0.3.2b0/Makefile +5 -0
  8. mesofield-0.3.2b0/PKG-INFO +178 -0
  9. mesofield-0.3.2b0/README.md +76 -0
  10. mesofield-0.3.2b0/TUTORIAL.md +256 -0
  11. mesofield-0.3.2b0/docs/_static/custom.css +40 -0
  12. mesofield-0.3.2b0/docs/_static/favicon.png +0 -0
  13. mesofield-0.3.2b0/docs/_static/logo.png +0 -0
  14. mesofield-0.3.2b0/docs/api/index.md +70 -0
  15. mesofield-0.3.2b0/docs/conf.py +200 -0
  16. mesofield-0.3.2b0/docs/developer_guide.md +303 -0
  17. mesofield-0.3.2b0/docs/index.md +25 -0
  18. mesofield-0.3.2b0/docs/tutorial.md +4 -0
  19. mesofield-0.3.2b0/docs/user_guide.md +172 -0
  20. mesofield-0.3.2b0/examples/teensy_pulse_generator.py +320 -0
  21. mesofield-0.3.2b0/experiments/pipeline_demo/experiment.json +24 -0
  22. mesofield-0.3.2b0/experiments/pipeline_demo/hardware.yaml +23 -0
  23. mesofield-0.3.2b0/experiments/pipeline_demo/procedure.py +50 -0
  24. mesofield-0.3.2b0/experiments/two_cam_demo/experiment.json +24 -0
  25. mesofield-0.3.2b0/experiments/two_cam_demo/hardware.yaml +58 -0
  26. mesofield-0.3.2b0/experiments/two_cam_demo/load_dataset.py +213 -0
  27. mesofield-0.3.2b0/experiments/two_cam_demo/procedure.py +87 -0
  28. mesofield-0.3.2b0/external/video-codecs/openh264-1.8.0-win64.dll +0 -0
  29. mesofield-0.3.2b0/mesofield/__init__.py +45 -0
  30. mesofield-0.3.2b0/mesofield/__main__.py +11 -0
  31. mesofield-0.3.2b0/mesofield/_version.py +24 -0
  32. mesofield-0.3.2b0/mesofield/base.py +750 -0
  33. mesofield-0.3.2b0/mesofield/cli/__init__.py +57 -0
  34. mesofield-0.3.2b0/mesofield/cli/_richhelp.py +100 -0
  35. mesofield-0.3.2b0/mesofield/cli/acquire.py +254 -0
  36. mesofield-0.3.2b0/mesofield/cli/datakit.py +165 -0
  37. mesofield-0.3.2b0/mesofield/cli/process.py +376 -0
  38. mesofield-0.3.2b0/mesofield/cli/rig.py +108 -0
  39. mesofield-0.3.2b0/mesofield/cli/tools.py +347 -0
  40. mesofield-0.3.2b0/mesofield/config.py +751 -0
  41. mesofield-0.3.2b0/mesofield/data/__init__.py +23 -0
  42. mesofield-0.3.2b0/mesofield/data/batch.py +633 -0
  43. mesofield-0.3.2b0/mesofield/data/manager.py +388 -0
  44. mesofield-0.3.2b0/mesofield/data/writer.py +289 -0
  45. mesofield-0.3.2b0/mesofield/datakit/__init__.py +44 -0
  46. mesofield-0.3.2b0/mesofield/datakit/__main__.py +35 -0
  47. mesofield-0.3.2b0/mesofield/datakit/_utils/_logger.py +5 -0
  48. mesofield-0.3.2b0/mesofield/datakit/_version.py +141 -0
  49. mesofield-0.3.2b0/mesofield/datakit/config.py +50 -0
  50. mesofield-0.3.2b0/mesofield/datakit/core.py +783 -0
  51. mesofield-0.3.2b0/mesofield/datakit/datamodel.py +200 -0
  52. mesofield-0.3.2b0/mesofield/datakit/discover.py +124 -0
  53. mesofield-0.3.2b0/mesofield/datakit/explore.py +651 -0
  54. mesofield-0.3.2b0/mesofield/datakit/notebooks/pupil_dlc.ipynb +2445 -0
  55. mesofield-0.3.2b0/mesofield/datakit/profile.py +535 -0
  56. mesofield-0.3.2b0/mesofield/datakit/shell.py +83 -0
  57. mesofield-0.3.2b0/mesofield/datakit/sources/__init__.py +65 -0
  58. mesofield-0.3.2b0/mesofield/datakit/sources/analysis/mesomap.py +194 -0
  59. mesofield-0.3.2b0/mesofield/datakit/sources/analysis/mesoscope.py +77 -0
  60. mesofield-0.3.2b0/mesofield/datakit/sources/analysis/pupil.py +246 -0
  61. mesofield-0.3.2b0/mesofield/datakit/sources/behavior/__init__.py +0 -0
  62. mesofield-0.3.2b0/mesofield/datakit/sources/behavior/dataqueue.py +281 -0
  63. mesofield-0.3.2b0/mesofield/datakit/sources/behavior/psychopy.py +364 -0
  64. mesofield-0.3.2b0/mesofield/datakit/sources/behavior/treadmill.py +323 -0
  65. mesofield-0.3.2b0/mesofield/datakit/sources/behavior/wheel.py +277 -0
  66. mesofield-0.3.2b0/mesofield/datakit/sources/camera/mesoscope.py +32 -0
  67. mesofield-0.3.2b0/mesofield/datakit/sources/camera/metadata_json.py +130 -0
  68. mesofield-0.3.2b0/mesofield/datakit/sources/camera/pupil.py +28 -0
  69. mesofield-0.3.2b0/mesofield/datakit/sources/camera/suite2p.py +547 -0
  70. mesofield-0.3.2b0/mesofield/datakit/sources/register.py +204 -0
  71. mesofield-0.3.2b0/mesofield/datakit/sources/session/config.py +130 -0
  72. mesofield-0.3.2b0/mesofield/datakit/sources/session/notes.py +63 -0
  73. mesofield-0.3.2b0/mesofield/datakit/sources/session/timestamps.py +58 -0
  74. mesofield-0.3.2b0/mesofield/datakit/timeline.py +306 -0
  75. mesofield-0.3.2b0/mesofield/devices/__init__.py +42 -0
  76. mesofield-0.3.2b0/mesofield/devices/base.py +498 -0
  77. mesofield-0.3.2b0/mesofield/devices/base_camera.py +295 -0
  78. mesofield-0.3.2b0/mesofield/devices/cameras.py +740 -0
  79. mesofield-0.3.2b0/mesofield/devices/daq.py +151 -0
  80. mesofield-0.3.2b0/mesofield/devices/encoder.py +384 -0
  81. mesofield-0.3.2b0/mesofield/devices/mocks.py +275 -0
  82. mesofield-0.3.2b0/mesofield/devices/psychopy_device.py +455 -0
  83. mesofield-0.3.2b0/mesofield/devices/subprocesses/__init__.py +0 -0
  84. mesofield-0.3.2b0/mesofield/devices/subprocesses/psychopy.py +133 -0
  85. mesofield-0.3.2b0/mesofield/devices/treadmill.py +318 -0
  86. mesofield-0.3.2b0/mesofield/engines.py +380 -0
  87. mesofield-0.3.2b0/mesofield/gui/Mesofield_icon.png +0 -0
  88. mesofield-0.3.2b0/mesofield/gui/__init__.py +76 -0
  89. mesofield-0.3.2b0/mesofield/gui/config_wizard.py +724 -0
  90. mesofield-0.3.2b0/mesofield/gui/controller.py +535 -0
  91. mesofield-0.3.2b0/mesofield/gui/dynamic_controller.py +78 -0
  92. mesofield-0.3.2b0/mesofield/gui/maingui.py +427 -0
  93. mesofield-0.3.2b0/mesofield/gui/mdagui.py +285 -0
  94. mesofield-0.3.2b0/mesofield/gui/qt_device_adapter.py +109 -0
  95. mesofield-0.3.2b0/mesofield/gui/speedplotter.py +152 -0
  96. mesofield-0.3.2b0/mesofield/gui/theme.py +445 -0
  97. mesofield-0.3.2b0/mesofield/gui/tiff_viewer.py +1050 -0
  98. mesofield-0.3.2b0/mesofield/gui/viewer.py +691 -0
  99. mesofield-0.3.2b0/mesofield/hardware.py +549 -0
  100. mesofield-0.3.2b0/mesofield/playback.py +1298 -0
  101. mesofield-0.3.2b0/mesofield/processing/__init__.py +12 -0
  102. mesofield-0.3.2b0/mesofield/processing/runner.py +237 -0
  103. mesofield-0.3.2b0/mesofield/processors/__init__.py +13 -0
  104. mesofield-0.3.2b0/mesofield/processors/base.py +287 -0
  105. mesofield-0.3.2b0/mesofield/processors/frame_mean.py +19 -0
  106. mesofield-0.3.2b0/mesofield/protocols.py +378 -0
  107. mesofield-0.3.2b0/mesofield/scaffold/__init__.py +34 -0
  108. mesofield-0.3.2b0/mesofield/scaffold/experiment.py +400 -0
  109. mesofield-0.3.2b0/mesofield/scaffold/rigs.py +121 -0
  110. mesofield-0.3.2b0/mesofield/signals.py +85 -0
  111. mesofield-0.3.2b0/mesofield/utils/__init__.py +0 -0
  112. mesofield-0.3.2b0/mesofield/utils/_logger.py +156 -0
  113. mesofield-0.3.2b0/mesofield/utils/retrofit.py +309 -0
  114. mesofield-0.3.2b0/mesofield/utils/utils.py +217 -0
  115. mesofield-0.3.2b0/mesofield.egg-info/PKG-INFO +178 -0
  116. mesofield-0.3.2b0/mesofield.egg-info/SOURCES.txt +138 -0
  117. mesofield-0.3.2b0/mesofield.egg-info/dependency_links.txt +1 -0
  118. mesofield-0.3.2b0/mesofield.egg-info/entry_points.txt +2 -0
  119. mesofield-0.3.2b0/mesofield.egg-info/requires.txt +60 -0
  120. mesofield-0.3.2b0/mesofield.egg-info/top_level.txt +7 -0
  121. mesofield-0.3.2b0/mesofield.yml +16 -0
  122. mesofield-0.3.2b0/pyproject.toml +106 -0
  123. mesofield-0.3.2b0/requirements-test.txt +10 -0
  124. mesofield-0.3.2b0/scripts/bench_frame_processor.py +103 -0
  125. mesofield-0.3.2b0/setup.cfg +4 -0
  126. mesofield-0.3.2b0/tests/__init__.py +0 -0
  127. mesofield-0.3.2b0/tests/arducam.py +71 -0
  128. mesofield-0.3.2b0/tests/detect_opencv_camera.py +174 -0
  129. mesofield-0.3.2b0/tests/sample_experiment/devcfg.json +38 -0
  130. mesofield-0.3.2b0/tests/sample_experiment/hardware.yaml +40 -0
  131. mesofield-0.3.2b0/tests/test_base_devices.py +272 -0
  132. mesofield-0.3.2b0/tests/test_config_simplification.py +48 -0
  133. mesofield-0.3.2b0/tests/test_encoder_devices.py +108 -0
  134. mesofield-0.3.2b0/tests/test_mda.py +24 -0
  135. mesofield-0.3.2b0/tests/test_opencv_camera.py +121 -0
  136. mesofield-0.3.2b0/tests/test_pipeline.py +986 -0
  137. mesofield-0.3.2b0/tests/test_procedure_discovery.py +105 -0
  138. mesofield-0.3.2b0/tests/test_psychopy.py +251 -0
  139. mesofield-0.3.2b0/tests/test_signals.py +69 -0
  140. mesofield-0.3.2b0/tests/test_workflow.py +201 -0
@@ -0,0 +1,8 @@
1
+ changelog:
2
+ categories:
3
+ - title: "New Features"
4
+ labels: [enhancement, feat, Feat, Enhancement]
5
+ - title: "Bug Fixes"
6
+ labels: [bug, fix, Fix, Bug]
7
+ - title: "Other Changes"
8
+ labels: ["*"]
@@ -0,0 +1,44 @@
1
+ name: Docs
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: write
10
+
11
+ concurrency:
12
+ group: docs-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ jobs:
16
+ build-and-deploy:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: Checkout
20
+ uses: actions/checkout@v4
21
+ with:
22
+ fetch-depth: 0
23
+
24
+ - name: Set up Python
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.12"
28
+ cache: pip
29
+
30
+ - name: Install docs dependencies
31
+ run: |
32
+ python -m pip install --upgrade pip
33
+ pip install -e ".[docs]"
34
+
35
+ - name: Build Sphinx site
36
+ run: |
37
+ sphinx-build -b html --keep-going docs docs/_build/html
38
+
39
+ - name: Deploy to gh-pages
40
+ uses: peaceiris/actions-gh-pages@v4
41
+ with:
42
+ github_token: ${{ secrets.GITHUB_TOKEN }}
43
+ publish_dir: docs/_build/html
44
+ force_orphan: true
@@ -0,0 +1,64 @@
1
+ name: Publish
2
+
3
+ on:
4
+ release:
5
+ types: [published] # -> publish to real PyPI
6
+ workflow_dispatch: {} # -> manual run publishes to TestPyPI
7
+
8
+ jobs:
9
+ build:
10
+ name: Build distributions
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ with:
15
+ fetch-depth: 0 # setuptools_scm needs full history + tags
16
+
17
+ - uses: actions/setup-python@v5
18
+ with:
19
+ python-version: "3.12"
20
+
21
+ - name: Build sdist and wheel
22
+ run: |
23
+ python -m pip install --upgrade pip build twine
24
+ python -m build
25
+ python -m twine check dist/*
26
+
27
+ - uses: actions/upload-artifact@v4
28
+ with:
29
+ name: dist
30
+ path: dist/
31
+
32
+ publish-testpypi:
33
+ name: Publish to TestPyPI
34
+ needs: build
35
+ if: github.event_name == 'workflow_dispatch'
36
+ runs-on: ubuntu-latest
37
+ environment: testpypi
38
+ permissions:
39
+ id-token: write # OIDC for Trusted Publishing
40
+ steps:
41
+ - uses: actions/download-artifact@v4
42
+ with:
43
+ name: dist
44
+ path: dist/
45
+
46
+ - uses: pypa/gh-action-pypi-publish@release/v1
47
+ with:
48
+ repository-url: https://test.pypi.org/legacy/
49
+
50
+ publish-pypi:
51
+ name: Publish to PyPI
52
+ needs: build
53
+ if: github.event_name == 'release'
54
+ runs-on: ubuntu-latest
55
+ environment: pypi
56
+ permissions:
57
+ id-token: write # OIDC for Trusted Publishing
58
+ steps:
59
+ - uses: actions/download-artifact@v4
60
+ with:
61
+ name: dist
62
+ path: dist/
63
+
64
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,25 @@
1
+ name: Release
2
+ on:
3
+ push:
4
+ tags:
5
+ - 'v*'
6
+
7
+ permissions:
8
+ contents: write
9
+
10
+ jobs:
11
+ release:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+ - uses: actions/setup-python@v5
18
+ with:
19
+ python-version: '3.11'
20
+ - run: pip install build
21
+ - run: python -m build
22
+ - uses: softprops/action-gh-release@v2
23
+ with:
24
+ files: dist/*
25
+ generate_release_notes: true
@@ -0,0 +1,191 @@
1
+ #mesofield
2
+ mesofield/_version.py
3
+ /data/
4
+ /logs/
5
+ **/*.log.*
6
+ /mesofield/logs/
7
+ mesofield/external/drivers
8
+ /experiments
9
+ # Ignore hardware.yaml everywhere except the one in mesofield/tests and mesofield/sample_experiments
10
+ */hardware.yaml
11
+ !/mesofield/tests/sample_experiment/hardware.yaml
12
+ !/mesofield/sample_experiments/hardware.yaml
13
+ # Byte-compiled / optimized / DLL files
14
+ __pycache__/
15
+ *.py[cod]
16
+ *$py.class
17
+
18
+ # C extensions
19
+ *.so
20
+
21
+ # Distribution / packaging
22
+ .conda/
23
+ .Python
24
+ build/
25
+ develop-eggs/
26
+ dist/
27
+ downloads/
28
+ eggs/
29
+ .eggs/
30
+ lib/
31
+ lib64/
32
+ parts/
33
+ sdist/
34
+ var/
35
+ wheels/
36
+ share/python-wheels/
37
+ *.egg-info/
38
+ .installed.cfg
39
+ *.egg
40
+ MANIFEST
41
+
42
+ # PyInstaller
43
+ # Usually these files are written by a python script from a template
44
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
45
+ *.manifest
46
+ *.spec
47
+
48
+ # Installer logs
49
+ pip-log.txt
50
+ pip-delete-this-directory.txt
51
+
52
+ # Unit test / coverage reports
53
+ htmlcov/
54
+ .tox/
55
+ .nox/
56
+ .coverage
57
+ .coverage.*
58
+ .cache
59
+ nosetests.xml
60
+ coverage.xml
61
+ *.cover
62
+ *.py,cover
63
+ .hypothesis/
64
+ .pytest_cache/
65
+ cover/
66
+
67
+ # Translations
68
+ *.mo
69
+ *.pot
70
+
71
+ # Django stuff:
72
+ *.log
73
+ local_settings.py
74
+ db.sqlite3
75
+ db.sqlite3-journal
76
+
77
+ # Flask stuff:
78
+ instance/
79
+ .webassets-cache
80
+
81
+ # Scrapy stuff:
82
+ .scrapy
83
+
84
+ # Sphinx documentation
85
+ docs/_build/
86
+
87
+ # PyBuilder
88
+ .pybuilder/
89
+ target/
90
+
91
+ # Jupyter Notebook
92
+ .ipynb_checkpoints
93
+
94
+ # IPython
95
+ profile_default/
96
+ ipython_config.py
97
+
98
+ # pyenv
99
+ # For a library or package, you might want to ignore these files since the code is
100
+ # intended to run in multiple environments; otherwise, check them in:
101
+ # .python-version
102
+
103
+ # pipenv
104
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
105
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
106
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
107
+ # install all needed dependencies.
108
+ #Pipfile.lock
109
+
110
+ # UV
111
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
112
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
113
+ # commonly ignored for libraries.
114
+ #uv.lock
115
+
116
+ # poetry
117
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
118
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
119
+ # commonly ignored for libraries.
120
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
121
+ #poetry.lock
122
+
123
+ # pdm
124
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
125
+ #pdm.lock
126
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
127
+ # in version control.
128
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
129
+ .pdm.toml
130
+ .pdm-python
131
+ .pdm-build/
132
+
133
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
134
+ __pypackages__/
135
+
136
+ # Celery stuff
137
+ celerybeat-schedule
138
+ celerybeat.pid
139
+
140
+ # SageMath parsed files
141
+ *.sage.py
142
+
143
+ # Environments
144
+ .env
145
+ .venv
146
+ env/
147
+ venv/
148
+ ENV/
149
+ env.bak/
150
+ venv.bak/
151
+
152
+ # Spyder project settings
153
+ .spyderproject
154
+ .spyproject
155
+
156
+ # Rope project settings
157
+ .ropeproject
158
+
159
+ # mkdocs documentation
160
+ /site
161
+
162
+ # mypy
163
+ .mypy_cache/
164
+ .dmypy.json
165
+ dmypy.json
166
+
167
+ # Pyre type checker
168
+ .pyre/
169
+
170
+ # pytype static type analyzer
171
+ .pytype/
172
+
173
+ # Cython debug symbols
174
+ cython_debug/
175
+
176
+ # PyCharm
177
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
178
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
179
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
180
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
181
+ #.idea/
182
+
183
+ # PyPI configuration file
184
+ .pypirc
185
+ Dhyana 400BSI_PIDe408.xml
186
+ .vscode/launch.json
187
+
188
+
189
+ # Sphinx-apidoc generated stubs (rebuilt every docs build)
190
+ docs/api/mesofield*.rst
191
+ docs/_build/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Gronemeyer
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.
@@ -0,0 +1,5 @@
1
+ release:
2
+ @test -n "$(V)" || (echo "usage: make release V=1.3.0"; exit 1)
3
+ python -m build
4
+ git tag v$(V)
5
+ git push --tags
@@ -0,0 +1,178 @@
1
+ Metadata-Version: 2.4
2
+ Name: mesofield
3
+ Version: 0.3.2b0
4
+ Summary: Mesofield is an open-source image acquisition Python software package build for the Sipe Laboratory at Pennsylvania State University.
5
+ Author: Jacob Gronemeyer
6
+ License: MIT License
7
+
8
+ Copyright (c) 2024 Gronemeyer
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/Gronemeyer/mesofield/
29
+ Project-URL: Repository, https://github.com/Gronemeyer/mesofield/
30
+ Project-URL: Issues, https://github.com/Gronemeyer/mesofield/issues
31
+ Project-URL: Documentation, https://gronemeyer.github.io/mesofield/
32
+ Keywords: imaging,microscopy,acquisition,neuroscience
33
+ Classifier: Development Status :: 4 - Beta
34
+ Classifier: Intended Audience :: Science/Research
35
+ Classifier: License :: OSI Approved :: MIT License
36
+ Classifier: Operating System :: OS Independent
37
+ Classifier: Programming Language :: Python :: 3.10
38
+ Classifier: Programming Language :: Python :: 3.11
39
+ Classifier: Programming Language :: Python :: 3.12
40
+ Classifier: Topic :: Scientific/Engineering
41
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
42
+ Requires-Python: >=3.10
43
+ Description-Content-Type: text/markdown
44
+ License-File: LICENSE
45
+ Requires-Dist: annotated-types
46
+ Requires-Dist: click
47
+ Requires-Dist: ipykernel
48
+ Requires-Dist: ipython
49
+ Requires-Dist: jupyter_client
50
+ Requires-Dist: jupyter_core
51
+ Requires-Dist: loguru
52
+ Requires-Dist: markdown-it-py
53
+ Requires-Dist: matplotlib
54
+ Requires-Dist: mesokit-schema
55
+ Requires-Dist: nidaqmx
56
+ Requires-Dist: numpy
57
+ Requires-Dist: packaging
58
+ Requires-Dist: pandas
59
+ Requires-Dist: parso
60
+ Requires-Dist: pillow
61
+ Requires-Dist: platformdirs
62
+ Requires-Dist: psygnal
63
+ Requires-Dist: pyaml
64
+ Requires-Dist: opencv-python
65
+ Requires-Dist: pymmcore
66
+ Requires-Dist: pymmcore-plus
67
+ Requires-Dist: pymmcore-widgets
68
+ Requires-Dist: PyQt6
69
+ Requires-Dist: PyQt6-Qt6
70
+ Requires-Dist: PyQt6_sip
71
+ Requires-Dist: pyqtgraph
72
+ Requires-Dist: pyserial
73
+ Requires-Dist: python-dateutil
74
+ Requires-Dist: pytz
75
+ Requires-Dist: pywin32; sys_platform == "win32"
76
+ Requires-Dist: pyzmq
77
+ Requires-Dist: qtconsole
78
+ Requires-Dist: rich
79
+ Requires-Dist: setuptools
80
+ Requires-Dist: tifffile
81
+ Requires-Dist: typer
82
+ Requires-Dist: typer-slim
83
+ Requires-Dist: typing_extensions
84
+ Requires-Dist: useq-schema
85
+ Requires-Dist: wheel
86
+ Provides-Extra: test
87
+ Requires-Dist: pytest; extra == "test"
88
+ Requires-Dist: coverage; extra == "test"
89
+ Requires-Dist: flake8; extra == "test"
90
+ Requires-Dist: black; extra == "test"
91
+ Requires-Dist: isort; extra == "test"
92
+ Requires-Dist: pytest-cov; extra == "test"
93
+ Requires-Dist: mypy; extra == "test"
94
+ Requires-Dist: gitchangelog; extra == "test"
95
+ Provides-Extra: docs
96
+ Requires-Dist: sphinx>=7; extra == "docs"
97
+ Requires-Dist: pydata-sphinx-theme; extra == "docs"
98
+ Requires-Dist: myst-parser; extra == "docs"
99
+ Requires-Dist: sphinx-copybutton; extra == "docs"
100
+ Requires-Dist: sphinx-design; extra == "docs"
101
+ Dynamic: license-file
102
+
103
+ ```
104
+ __ __ ______ ______ ______ ______ __ ______ __ _____
105
+ /\ "-./ \ /\ ___\ /\ ___\ /\ __ \ /\ ___\ /\ \ /\ ___\ /\ \ /\ __-.
106
+ \ \ \-./\ \ \ \ __\ \ \___ \ \ \ \/\ \ \ \ __\ \ \ \ \ \ __\ \ \ \____ \ \ \/\ \
107
+ \ \_\ \ \_\ \ \_____\ \/\_____\ \ \_____\ \ \_\ \ \_\ \ \_____\ \ \_____\ \ \____-
108
+ \/_/ \/_/ \/_____/ \/_____/ \/_____/ \/_/ \/_/ \/_____/ \/_____/ \/____/
109
+ ```
110
+
111
+ Mesofield is a PyQt6-based framework for running real-time, multi-camera
112
+ neuroscience experiments. It coordinates hardware via serial connections
113
+ and MicroManager (through [pymmcore-plus](https://pymmcore-plus.github.io/pymmcore-plus/)
114
+ custom `MDAEngine`s and multi-`CMMCorePlus` instancing) and manages
115
+ experiment configuration, acquisition orchestration, and data logging.
116
+ The project is aimed at laboratory use and is not a full production
117
+ package; some specialised knowledge of device hardware and
118
+ MicroManager device configuration is necessary to get started.
119
+
120
+ <img width="2454" height="1592" alt="Mesofield acquisition window" src="https://github.com/user-attachments/assets/151196ab-2d74-4644-85b7-c4facf3b779a" />
121
+
122
+ ---
123
+
124
+ ## Documentation
125
+
126
+ Documentation lives at **[gronemeyer.github.io/mesofield](https://gronemeyer.github.io/mesofield/)**
127
+ and is split by audience:
128
+
129
+ - **[Tutorial](https://gronemeyer.github.io/mesofield/tutorial.html)** —
130
+ the fastest path from a fresh conda env to a working acquisition on
131
+ your hardware.
132
+ - **[User Guide](https://gronemeyer.github.io/mesofield/user_guide.html)** —
133
+ for experimenters running acquisitions: launching the GUI, writing
134
+ `experiment.json`, interpreting the on-disk output.
135
+ - **[Developer Guide](https://gronemeyer.github.io/mesofield/developer_guide.html)** —
136
+ for developers extending mesofield: custom devices, `Procedure`
137
+ subclasses, frame processors, threading models.
138
+ - **[API Reference](https://gronemeyer.github.io/mesofield/api/index.html)** —
139
+ auto-generated from docstrings.
140
+
141
+ ---
142
+
143
+ ## Quick start
144
+
145
+ ```bash
146
+ conda create -n mesofield python=3.12 -y
147
+ conda activate mesofield
148
+ pip install -e .
149
+ ```
150
+
151
+ Launch an acquisition:
152
+
153
+ ```bash
154
+ mesofield launch path/to/experiment.json
155
+ ```
156
+
157
+ Scaffold a new experiment:
158
+
159
+ ```bash
160
+ mesofield new my-experiment
161
+ ```
162
+
163
+ For end-to-end setup, follow the
164
+ [Tutorial](https://gronemeyer.github.io/mesofield/tutorial.html).
165
+
166
+ ---
167
+
168
+ ## System requirements
169
+
170
+ Tested on Windows 10/11. For multi-camera acquisition with large files
171
+ we recommend ≥ 32 GB RAM, a 12th-gen Intel i7 or equivalent, and fast
172
+ local NVMe storage for the experiment directory.
173
+
174
+ ---
175
+
176
+ ## License
177
+
178
+ MIT — see `LICENSE`.
@@ -0,0 +1,76 @@
1
+ ```
2
+ __ __ ______ ______ ______ ______ __ ______ __ _____
3
+ /\ "-./ \ /\ ___\ /\ ___\ /\ __ \ /\ ___\ /\ \ /\ ___\ /\ \ /\ __-.
4
+ \ \ \-./\ \ \ \ __\ \ \___ \ \ \ \/\ \ \ \ __\ \ \ \ \ \ __\ \ \ \____ \ \ \/\ \
5
+ \ \_\ \ \_\ \ \_____\ \/\_____\ \ \_____\ \ \_\ \ \_\ \ \_____\ \ \_____\ \ \____-
6
+ \/_/ \/_/ \/_____/ \/_____/ \/_____/ \/_/ \/_/ \/_____/ \/_____/ \/____/
7
+ ```
8
+
9
+ Mesofield is a PyQt6-based framework for running real-time, multi-camera
10
+ neuroscience experiments. It coordinates hardware via serial connections
11
+ and MicroManager (through [pymmcore-plus](https://pymmcore-plus.github.io/pymmcore-plus/)
12
+ custom `MDAEngine`s and multi-`CMMCorePlus` instancing) and manages
13
+ experiment configuration, acquisition orchestration, and data logging.
14
+ The project is aimed at laboratory use and is not a full production
15
+ package; some specialised knowledge of device hardware and
16
+ MicroManager device configuration is necessary to get started.
17
+
18
+ <img width="2454" height="1592" alt="Mesofield acquisition window" src="https://github.com/user-attachments/assets/151196ab-2d74-4644-85b7-c4facf3b779a" />
19
+
20
+ ---
21
+
22
+ ## Documentation
23
+
24
+ Documentation lives at **[gronemeyer.github.io/mesofield](https://gronemeyer.github.io/mesofield/)**
25
+ and is split by audience:
26
+
27
+ - **[Tutorial](https://gronemeyer.github.io/mesofield/tutorial.html)** —
28
+ the fastest path from a fresh conda env to a working acquisition on
29
+ your hardware.
30
+ - **[User Guide](https://gronemeyer.github.io/mesofield/user_guide.html)** —
31
+ for experimenters running acquisitions: launching the GUI, writing
32
+ `experiment.json`, interpreting the on-disk output.
33
+ - **[Developer Guide](https://gronemeyer.github.io/mesofield/developer_guide.html)** —
34
+ for developers extending mesofield: custom devices, `Procedure`
35
+ subclasses, frame processors, threading models.
36
+ - **[API Reference](https://gronemeyer.github.io/mesofield/api/index.html)** —
37
+ auto-generated from docstrings.
38
+
39
+ ---
40
+
41
+ ## Quick start
42
+
43
+ ```bash
44
+ conda create -n mesofield python=3.12 -y
45
+ conda activate mesofield
46
+ pip install -e .
47
+ ```
48
+
49
+ Launch an acquisition:
50
+
51
+ ```bash
52
+ mesofield launch path/to/experiment.json
53
+ ```
54
+
55
+ Scaffold a new experiment:
56
+
57
+ ```bash
58
+ mesofield new my-experiment
59
+ ```
60
+
61
+ For end-to-end setup, follow the
62
+ [Tutorial](https://gronemeyer.github.io/mesofield/tutorial.html).
63
+
64
+ ---
65
+
66
+ ## System requirements
67
+
68
+ Tested on Windows 10/11. For multi-camera acquisition with large files
69
+ we recommend ≥ 32 GB RAM, a 12th-gen Intel i7 or equivalent, and fast
70
+ local NVMe storage for the experiment directory.
71
+
72
+ ---
73
+
74
+ ## License
75
+
76
+ MIT — see `LICENSE`.