mosca 2.0.2__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 (204) hide show
  1. mosca-2.0.2/.gitignore +112 -0
  2. mosca-2.0.2/.gitlab-ci.yml +146 -0
  3. mosca-2.0.2/LICENSE +166 -0
  4. mosca-2.0.2/MANIFEST.in +8 -0
  5. mosca-2.0.2/PKG-INFO +32 -0
  6. mosca-2.0.2/README.rst +8 -0
  7. mosca-2.0.2/conda/meta.yaml +79 -0
  8. mosca-2.0.2/doc/docs/bliss.md +9 -0
  9. mosca-2.0.2/doc/docs/controllers.md +2 -0
  10. mosca-2.0.2/doc/docs/devel/buffer.md +4 -0
  11. mosca-2.0.2/doc/docs/devel/controller.md +11 -0
  12. mosca-2.0.2/doc/docs/devel/mosca.md +7 -0
  13. mosca-2.0.2/doc/docs/devel/overview.md +132 -0
  14. mosca-2.0.2/doc/docs/devel/tasks/background.md +4 -0
  15. mosca-2.0.2/doc/docs/hamamatsu.md +100 -0
  16. mosca-2.0.2/doc/docs/img/mosca.avif +0 -0
  17. mosca-2.0.2/doc/docs/img/mosca.ico +0 -0
  18. mosca-2.0.2/doc/docs/img/mosca1.png +0 -0
  19. mosca-2.0.2/doc/docs/img/mosca2.png +0 -0
  20. mosca-2.0.2/doc/docs/img/oo_hw_edge_trig.png +0 -0
  21. mosca-2.0.2/doc/docs/index.md +35 -0
  22. mosca-2.0.2/doc/docs/install.md +15 -0
  23. mosca-2.0.2/doc/docs/mosca.md +50 -0
  24. mosca-2.0.2/doc/docs/oceanoptics.md +71 -0
  25. mosca-2.0.2/doc/docs/quickstart.md +222 -0
  26. mosca-2.0.2/doc/docs/simulators.md +20 -0
  27. mosca-2.0.2/doc/docs/tasks/background.md +16 -0
  28. mosca-2.0.2/doc/docs/tasks/overview.md +30 -0
  29. mosca-2.0.2/doc/docs/tasks/rois.md +1 -0
  30. mosca-2.0.2/doc/docs/tasks/spectrasum.md +1 -0
  31. mosca-2.0.2/doc/docs/xglab.md +60 -0
  32. mosca-2.0.2/doc/docs/xia.md +167 -0
  33. mosca-2.0.2/doc/mkdocs.yml +106 -0
  34. mosca-2.0.2/doc/src/wavedrom/oo_hw_edge_trig.txt +9 -0
  35. mosca-2.0.2/doc/theme/bliss_logo_small.svg +636 -0
  36. mosca-2.0.2/packages/bliss_mosca/README.rst +5 -0
  37. mosca-2.0.2/packages/bliss_mosca/pyproject.toml +28 -0
  38. mosca-2.0.2/packages/bliss_mosca/src/bliss_mosca/__init__.py +9 -0
  39. mosca-2.0.2/packages/bliss_mosca/src/bliss_mosca/base.py +982 -0
  40. mosca-2.0.2/packages/bliss_mosca/src/bliss_mosca/calccounters.py +366 -0
  41. mosca-2.0.2/packages/bliss_mosca/src/bliss_mosca/channel.py +70 -0
  42. mosca-2.0.2/packages/bliss_mosca/src/bliss_mosca/compat.py +24 -0
  43. mosca-2.0.2/packages/bliss_mosca/src/bliss_mosca/counters.py +169 -0
  44. mosca-2.0.2/packages/bliss_mosca/src/bliss_mosca/simulation/__init__.py +0 -0
  45. mosca-2.0.2/packages/bliss_mosca/src/bliss_mosca/simulation/generator.py +221 -0
  46. mosca-2.0.2/packages/bliss_mosca/src/bliss_mosca/simulation/moscans.py +224 -0
  47. mosca-2.0.2/packages/blissdata_mosca/README.rst +4 -0
  48. mosca-2.0.2/packages/blissdata_mosca/pyproject.toml +31 -0
  49. mosca-2.0.2/packages/blissdata_mosca/src/blissdata_mosca/__init__.py +4 -0
  50. mosca-2.0.2/packages/blissdata_mosca/src/blissdata_mosca/stream.py +297 -0
  51. mosca-2.0.2/packages/mosca_client/README.rst +4 -0
  52. mosca-2.0.2/packages/mosca_client/pyproject.toml +28 -0
  53. mosca-2.0.2/packages/mosca_client/src/mosca_client/__init__.py +0 -0
  54. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/__init__.py +0 -0
  55. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/__init__.py +0 -0
  56. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/dante.py +116 -0
  57. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/danteplus.py +8 -0
  58. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/dummy.py +9 -0
  59. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/falconx.py +71 -0
  60. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/generator.py +58 -0
  61. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/simdante.py +9 -0
  62. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/simfalconx.py +9 -0
  63. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/simulation.py +18 -0
  64. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/devices/xia.py +66 -0
  65. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/mca.py +96 -0
  66. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/mosca.py +639 -0
  67. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/rois.py +262 -0
  68. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/saving.py +135 -0
  69. mosca-2.0.2/packages/mosca_client/src/mosca_client/tango/utils.py +78 -0
  70. mosca-2.0.2/pyproject.toml +186 -0
  71. mosca-2.0.2/scripts/mosca.ps1 +7 -0
  72. mosca-2.0.2/setup.cfg +12 -0
  73. mosca-2.0.2/setup.py +4 -0
  74. mosca-2.0.2/src/mosca/__init__.py +11 -0
  75. mosca-2.0.2/src/mosca/common/__init__.py +9 -0
  76. mosca-2.0.2/src/mosca/common/enums.py +79 -0
  77. mosca-2.0.2/src/mosca/common/logger.py +139 -0
  78. mosca-2.0.2/src/mosca/common/threads.py +199 -0
  79. mosca-2.0.2/src/mosca/common/utils.py +70 -0
  80. mosca-2.0.2/src/mosca/control/__init__.py +4 -0
  81. mosca-2.0.2/src/mosca/control/buffer.py +526 -0
  82. mosca-2.0.2/src/mosca/control/controller.py +278 -0
  83. mosca-2.0.2/src/mosca/control/datahandler.py +261 -0
  84. mosca-2.0.2/src/mosca/control/detectors.py +116 -0
  85. mosca-2.0.2/src/mosca/control/mosca.py +693 -0
  86. mosca-2.0.2/src/mosca/control/spectra.py +36 -0
  87. mosca-2.0.2/src/mosca/control/stats.py +43 -0
  88. mosca-2.0.2/src/mosca/control/tasks/__init__.py +3 -0
  89. mosca-2.0.2/src/mosca/control/tasks/background.py +118 -0
  90. mosca-2.0.2/src/mosca/control/tasks/rois.py +466 -0
  91. mosca-2.0.2/src/mosca/control/tasks/saving.py +391 -0
  92. mosca-2.0.2/src/mosca/control/tasks/spectrasums.py +185 -0
  93. mosca-2.0.2/src/mosca/control/tasks/task.py +201 -0
  94. mosca-2.0.2/src/mosca/control/tasks/taskmanager.py +133 -0
  95. mosca-2.0.2/src/mosca/devices/__init__.py +28 -0
  96. mosca-2.0.2/src/mosca/devices/hamamatsu/__init__.py +0 -0
  97. mosca-2.0.2/src/mosca/devices/hamamatsu/hamamatsu.py +88 -0
  98. mosca-2.0.2/src/mosca/devices/hamamatsu/hamamatsuhw.py +1298 -0
  99. mosca-2.0.2/src/mosca/devices/oceanoptics/__init__.py +0 -0
  100. mosca-2.0.2/src/mosca/devices/oceanoptics/oceanoptics.py +59 -0
  101. mosca-2.0.2/src/mosca/devices/oceanoptics/oceanopticshw.py +379 -0
  102. mosca-2.0.2/src/mosca/devices/simulation/__init__.py +0 -0
  103. mosca-2.0.2/src/mosca/devices/simulation/dante/__init__.py +1 -0
  104. mosca-2.0.2/src/mosca/devices/simulation/dante/simdante.py +33 -0
  105. mosca-2.0.2/src/mosca/devices/simulation/dante/simdantehw.py +506 -0
  106. mosca-2.0.2/src/mosca/devices/simulation/dummy/__init__.py +1 -0
  107. mosca-2.0.2/src/mosca/devices/simulation/dummy/dummy.py +299 -0
  108. mosca-2.0.2/src/mosca/devices/simulation/generator.py +607 -0
  109. mosca-2.0.2/src/mosca/devices/simulation/xia/__init__.py +1 -0
  110. mosca-2.0.2/src/mosca/devices/simulation/xia/iniparser.py +99 -0
  111. mosca-2.0.2/src/mosca/devices/simulation/xia/simfalconx.py +26 -0
  112. mosca-2.0.2/src/mosca/devices/simulation/xia/simfalconxhw.py +599 -0
  113. mosca-2.0.2/src/mosca/devices/xglab/__init__.py +0 -0
  114. mosca-2.0.2/src/mosca/devices/xglab/dante.py +126 -0
  115. mosca-2.0.2/src/mosca/devices/xglab/dantehw.py +1178 -0
  116. mosca-2.0.2/src/mosca/devices/xia/__init__.py +0 -0
  117. mosca-2.0.2/src/mosca/devices/xia/falconx.py +232 -0
  118. mosca-2.0.2/src/mosca/devices/xia/handel/__init__.py +14 -0
  119. mosca-2.0.2/src/mosca/devices/xia/handel/_cffi.py +62 -0
  120. mosca-2.0.2/src/mosca/devices/xia/handel/error.py +272 -0
  121. mosca-2.0.2/src/mosca/devices/xia/handel/handel_inc/handel_constants.h +127 -0
  122. mosca-2.0.2/src/mosca/devices/xia/handel/handel_inc/handel_errors.h +254 -0
  123. mosca-2.0.2/src/mosca/devices/xia/handel/handel_inc/handel_generic.h +66 -0
  124. mosca-2.0.2/src/mosca/devices/xia/handel/interface.py +1025 -0
  125. mosca-2.0.2/src/mosca/devices/xia/handel/mapping.py +107 -0
  126. mosca-2.0.2/src/mosca/devices/xia/handel/parser.py +62 -0
  127. mosca-2.0.2/src/mosca/devices/xia/handel/stats.py +85 -0
  128. mosca-2.0.2/src/mosca/devices/xia/mercury.py +160 -0
  129. mosca-2.0.2/src/mosca/devices/xia/utils.py +47 -0
  130. mosca-2.0.2/src/mosca/devices/xia/xia.py +575 -0
  131. mosca-2.0.2/src/mosca/devices/xia/xiads.py +161 -0
  132. mosca-2.0.2/src/mosca/mosca.py +0 -0
  133. mosca-2.0.2/src/mosca/tango/__init__.py +2 -0
  134. mosca-2.0.2/src/mosca/tango/controller.py +80 -0
  135. mosca-2.0.2/src/mosca/tango/main.py +163 -0
  136. mosca-2.0.2/src/mosca/tango/mosca.py +513 -0
  137. mosca-2.0.2/src/mosca/tango/moscav1.py +408 -0
  138. mosca-2.0.2/src/mosca/tango/shared.py +23 -0
  139. mosca-2.0.2/src/mosca/tango/tasks/__init__.py +0 -0
  140. mosca-2.0.2/src/mosca/tango/tasks/background.py +55 -0
  141. mosca-2.0.2/src/mosca/tango/utils.py +109 -0
  142. mosca-2.0.2/tests/__init__.py +0 -0
  143. mosca-2.0.2/tests/bliss/__init__.py +0 -0
  144. mosca-2.0.2/tests/bliss/bliss_utils.py +20 -0
  145. mosca-2.0.2/tests/bliss/conftest.py +329 -0
  146. mosca-2.0.2/tests/bliss/test_calcformula.py +329 -0
  147. mosca-2.0.2/tests/bliss/test_hdf5.py +209 -0
  148. mosca-2.0.2/tests/bliss/test_mosca.py +87 -0
  149. mosca-2.0.2/tests/bliss/test_moscastream.py +57 -0
  150. mosca-2.0.2/tests/bliss/test_simdante.py +243 -0
  151. mosca-2.0.2/tests/bliss/test_simfalconx.py +1390 -0
  152. mosca-2.0.2/tests/bliss/utils.py +44 -0
  153. mosca-2.0.2/tests/bliss/v1/__init__.py +0 -0
  154. mosca-2.0.2/tests/bliss/v1/test_calcformula_v1.py +95 -0
  155. mosca-2.0.2/tests/bliss/v1/test_dummy_v1.py +10 -0
  156. mosca-2.0.2/tests/bliss/v1/test_hdf5.py +150 -0
  157. mosca-2.0.2/tests/bliss/v1/test_moscav1.py +779 -0
  158. mosca-2.0.2/tests/bliss/v1/test_simfx_v1.py +1206 -0
  159. mosca-2.0.2/tests/conftest.py +271 -0
  160. mosca-2.0.2/tests/data/beacon/__init__.yml +20 -0
  161. mosca-2.0.2/tests/data/beacon/mosca/counters.yml +17 -0
  162. mosca-2.0.2/tests/data/beacon/mosca/dummy.yml +11 -0
  163. mosca-2.0.2/tests/data/beacon/mosca/simdante.yml +24 -0
  164. mosca-2.0.2/tests/data/beacon/mosca/simfx.yml +63 -0
  165. mosca-2.0.2/tests/data/beacon/sessions/__init__.yml +1 -0
  166. mosca-2.0.2/tests/data/beacon/sessions/session_simfx_w_counters_setup.py +0 -0
  167. mosca-2.0.2/tests/data/beacon/sessions/session_simfx_with_counters.yml +15 -0
  168. mosca-2.0.2/tests/data/beacon/sessions/test_dummy.yml +5 -0
  169. mosca-2.0.2/tests/data/beacon/sessions/test_dummy_setup.py +0 -0
  170. mosca-2.0.2/tests/data/beacon/sessions/test_dummy_v1.yml +5 -0
  171. mosca-2.0.2/tests/data/beacon/sessions/test_dummy_v1_setup.py +0 -0
  172. mosca-2.0.2/tests/data/beacon/sessions/test_simdante.yml +5 -0
  173. mosca-2.0.2/tests/data/beacon/sessions/test_simdante_setup.py +0 -0
  174. mosca-2.0.2/tests/data/beacon/sessions/test_simdante_v1.yml +5 -0
  175. mosca-2.0.2/tests/data/beacon/sessions/test_simdante_v1_setup.py +0 -0
  176. mosca-2.0.2/tests/data/beacon/sessions/test_simfx.yml +5 -0
  177. mosca-2.0.2/tests/data/beacon/sessions/test_simfx_setup.py +0 -0
  178. mosca-2.0.2/tests/data/beacon/sessions/test_simfx_v1.yml +5 -0
  179. mosca-2.0.2/tests/data/beacon/sessions/test_simfx_v1_setup.py +0 -0
  180. mosca-2.0.2/tests/data/beacon/tango/__init__.py +0 -0
  181. mosca-2.0.2/tests/data/beacon/tango/nexus_writer.yml +8 -0
  182. mosca-2.0.2/tests/data/dante/dante_16ch.hdf +0 -0
  183. mosca-2.0.2/tests/data/dante/dante_1ch.hdf +0 -0
  184. mosca-2.0.2/tests/data/falconx/falconx.ini +86 -0
  185. mosca-2.0.2/tests/data/falconx/falconx_18ch.ini +938 -0
  186. mosca-2.0.2/tests/data/falconx/falconx_1ch.ini +86 -0
  187. mosca-2.0.2/tests/data/falconx/falconx_2ch.ini +136 -0
  188. mosca-2.0.2/tests/data/falconx/falconx_6ch.ini +342 -0
  189. mosca-2.0.2/tests/mosca/__init__.py +0 -0
  190. mosca-2.0.2/tests/mosca/control/__init__.py +0 -0
  191. mosca-2.0.2/tests/mosca/control/common.py +80 -0
  192. mosca-2.0.2/tests/mosca/control/tasks/__init__.py +0 -0
  193. mosca-2.0.2/tests/mosca/control/tasks/test_rois.py +517 -0
  194. mosca-2.0.2/tests/mosca/control/tasks/test_tasks.py +32 -0
  195. mosca-2.0.2/tests/mosca/control/tasks/test_writer.py +0 -0
  196. mosca-2.0.2/tests/mosca/control/test_buffer.py +258 -0
  197. mosca-2.0.2/tests/mosca/control/test_datahandler.py +152 -0
  198. mosca-2.0.2/tests/mosca/tango/__init__.py +0 -0
  199. mosca-2.0.2/tests/mosca/tango/devices/__init__.py +0 -0
  200. mosca-2.0.2/tests/mosca/tango/devices/test_simdante.py +260 -0
  201. mosca-2.0.2/tests/mosca/tango/devices/test_simfalconx.py +419 -0
  202. mosca-2.0.2/tests/mosca/tango/test_mosca.py +227 -0
  203. mosca-2.0.2/tests/mosca/tango/test_rois.py +349 -0
  204. mosca-2.0.2/tests/perf/test_writer.py +89 -0
mosca-2.0.2/.gitignore ADDED
@@ -0,0 +1,112 @@
1
+ pixi.lock
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Ignore any hidden files from the project root
12
+ /.*
13
+ !.gitlab-ci.yml
14
+
15
+ conda-bld/
16
+
17
+ # Distribution / packaging
18
+ .Python
19
+ env/
20
+ build/
21
+ develop-eggs/
22
+ dist/
23
+ downloads/
24
+ eggs/
25
+ .eggs/
26
+ lib/
27
+ lib64/
28
+ parts/
29
+ sdist/
30
+ var/
31
+ wheels/
32
+ *.egg-info/
33
+ .installed.cfg
34
+ *.egg
35
+
36
+ # PyInstaller
37
+ # Usually these files are written by a python script from a template
38
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
39
+ *.manifest
40
+ *.spec
41
+
42
+ # Installer logs
43
+ pip-log.txt
44
+ pip-delete-this-directory.txt
45
+
46
+ # Unit test / coverage reports
47
+ htmlcov*/
48
+ .tox/
49
+ .coverage
50
+ .coverage.*
51
+ .cache
52
+ nosetests.xml
53
+ coverage.xml
54
+ report.xml
55
+ *.cover
56
+ .hypothesis/
57
+
58
+ # Translations
59
+ *.mo
60
+ *.pot
61
+
62
+ # Django stuff:
63
+ *.log
64
+ local_settings.py
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+
76
+ # PyBuilder
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # pyenv
83
+ .python-version
84
+
85
+ # celery beat schedule file
86
+ celerybeat-schedule
87
+
88
+ # SageMath parsed files
89
+ *.sage.py
90
+
91
+ # dotenv
92
+ .env
93
+
94
+ # virtualenv
95
+ .venv
96
+ venv/
97
+ ENV/
98
+
99
+ # Spyder project settings
100
+ .spyderproject
101
+ .spyproject
102
+
103
+ # Rope project settings
104
+ .ropeproject
105
+
106
+ # mkdocs documentation
107
+ doc/site/
108
+
109
+ # mypy
110
+ .mypy_cache/
111
+
112
+ *.mprg
@@ -0,0 +1,146 @@
1
+ stages:
2
+ - tests
3
+ # - tests_bliss
4
+ - coverage
5
+ - testv1
6
+ # - build
7
+
8
+
9
+ default:
10
+ image: gitlab-registry.esrf.fr/bliss/bcu-dockerfiles/bliss-pixi-ci-runner:1.3.0
11
+ before_script:
12
+ # To be removed when adding a docker mounting point on /dev/random
13
+ # but branches using this command will stay compatible during transition.
14
+ - rm /dev/random && ln -s /dev/urandom /dev/random || true
15
+ interruptible: true
16
+
17
+ # default:
18
+ # # image: gitlab-registry.esrf.fr/bliss/bcu-dockerfiles/bliss-pixi-ci-runner:1.3.0
19
+ # # image: esrfbcu/bliss-ci-runner:master
20
+ # image: docker-registry.esrf.fr/bcu/conda-builder
21
+ # #condaforge/mambaforge
22
+ # # before_script:
23
+ # # - export CONDA_ALWAYS_YES=1
24
+ # # - export MAMBA_NO_BANNER=1
25
+ # # - /opt/conda/bin/mamba init && source /root/.bashrc
26
+ # # - conda config --append channels esrf-bcu
27
+ # # - . /opt/conda/etc/profile.d/conda.sh
28
+ # # - . /opt/conda/etc/profile.d/mamba.sh
29
+ # # - mamba activate default_env
30
+ # # # - rm /dev/random && ln -s /dev/urandom /dev/random || true
31
+ # interruptible: true
32
+
33
+ test_server:
34
+ # image: gitlab-registry.esrf.fr/bliss/bcu-dockerfiles/bliss-pixi-ci-runner:1.3.0
35
+ stage: tests
36
+ script:
37
+ - pixi run -e testserver cov_server
38
+ # test_server
39
+ artifacts:
40
+ when: always
41
+ paths:
42
+ - .coverage*
43
+ expire_in: 2 days
44
+
45
+ test_bliss:
46
+ # image: gitlab-registry.esrf.fr/bliss/bcu-dockerfiles/bliss-pixi-ci-runner:1.3.0
47
+ stage: tests
48
+ script:
49
+ - pixi run -e testblissmaster cov_bliss
50
+ # test_bliss
51
+ artifacts:
52
+ when: always
53
+ paths:
54
+ - .coverage*
55
+ expire_in: 2 days
56
+
57
+ coverage:
58
+ stage: coverage
59
+ script: pixi run -e testblissmaster coverage
60
+ coverage: '/TOTAL.*\s+(\d+%)$/'
61
+ # coverage: '/TOTAL.*\s+(\d+%)$/'
62
+ artifacts:
63
+ expire_in: 2 days
64
+ paths:
65
+ - report.xml
66
+ - htmlcov
67
+ reports:
68
+ junit: report.xml
69
+ coverage_report:
70
+ coverage_format: cobertura
71
+ path: coverage.xml
72
+
73
+ testv1:
74
+ stage: tests
75
+ script: pixi run -e testv1master cov_v1
76
+ # test_v1
77
+ coverage: '/TOTAL.*\s+(\d+%)$/'
78
+
79
+
80
+ # package:
81
+ # rules:
82
+ # - if: $CI_COMMIT_BRANCH == "master"
83
+ # script:
84
+ # - pixi publish --package-format tar-bz2 --build-platform noarch --target-dir dist/
85
+ # - pixi publish --path packages/mosca_client --package-format tar-bz2 --build-platform noarch --target-dir dist/
86
+ # artifacts:
87
+ # when: always
88
+ # paths:
89
+ # - dist/*tar.bz2
90
+ # expire_in: never
91
+
92
+ # coverage:
93
+ # stage: coverage
94
+ # script: pixi run -e testblissmaster coverage
95
+ # coverage: '/TOTAL.*\s+(\d+%)$/'
96
+ # # coverage: '/TOTAL.*\s+(\d+%)$/'
97
+ # artifacts:
98
+ # expire_in: 2 days
99
+ # paths:
100
+ # - report.xml
101
+ # - htmlcov
102
+ # reports:
103
+ # junit: report.xml
104
+ # coverage_report:
105
+ # coverage_format: cobertura
106
+ # path: coverage.xml
107
+
108
+ # pages:
109
+ # stage: build
110
+ # rules:
111
+ # - if: $CI_COMMIT_BRANCH == "master"
112
+ # before_script:
113
+ # - mamba create --quiet --yes --name mkdocsenv --file requirements-doc.txt
114
+ # - source activate mkdocsenv
115
+ # - pip install mkdocs-autoapi[python] mkdocs-material mkdocs-autorefs markdown-toc black sphinx>=4.0.2 graphviz pygments markdown-inline-graphviz
116
+ # script:
117
+ # - cd doc && mkdocs build
118
+ # - cd ..
119
+ # - mv doc/site/ public
120
+ # - mv htmlcov public/
121
+ # - mv htmlcovv1 public/
122
+ # artifacts:
123
+ # expire_in: 2 days
124
+ # paths:
125
+ # - public
126
+
127
+ # conda_package:
128
+ # stage: build
129
+ # before_script:
130
+ # - mamba install conda-build
131
+ # # - export CONDA_ALWAYS_YES=1
132
+ # # - export MAMBA_NO_BANNER=1
133
+ # # - export CONDA_PKGS_DIRS=/tmp/conda-pkgs
134
+ # # - /opt/conda/bin/mamba init && source /root/.bashrc
135
+ # # - conda config --append channels conda-forge
136
+ # # - conda config --append channels esrf-bcu
137
+ # # - . /opt/conda/etc/profile.d/conda.sh
138
+ # # - . /opt/conda/etc/profile.d/mamba.sh
139
+ # # - mamba activate moscacli
140
+ # script:
141
+ # # - conda build conda --croot /tmp/conda-croot --output-folder conda-bld
142
+ # - conda build conda --output-folder conda-bld
143
+ # artifacts:
144
+ # expire_in: 2 days
145
+ # paths:
146
+ # - conda-bld/
mosca-2.0.2/LICENSE ADDED
@@ -0,0 +1,166 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
166
+
@@ -0,0 +1,8 @@
1
+ include LICENSE
2
+ include README.rst
3
+
4
+ recursive-include tests *
5
+ recursive-exclude * __pycache__
6
+ recursive-exclude * *.py[co]
7
+
8
+ recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
mosca-2.0.2/PKG-INFO ADDED
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.5
2
+ Name: mosca
3
+ Version: 2.0.2
4
+ Summary: A library for the unified control of MCA detectors
5
+ Project-URL: Homepage, https://gitlab.esrf.fr/bliss/mosca
6
+ Project-URL: Bug Tracker, https://gitlab.esrf.fr/bliss/mosca/issues
7
+ Author-email: BCU Team <bliss@esrf.fr>
8
+ License-File: LICENSE
9
+ Keywords: ESRF,MCA
10
+ Classifier: Development Status :: 2 - Pre-Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Requires-Python: <3.13,>=3.9
16
+ Requires-Dist: cffi
17
+ Requires-Dist: h5py
18
+ Requires-Dist: hdf5plugin
19
+ Requires-Dist: lark
20
+ Requires-Dist: numpy
21
+ Requires-Dist: pytango
22
+ Requires-Dist: ruamel-yaml
23
+ Description-Content-Type: text/x-rst
24
+
25
+ Mosca 2
26
+
27
+ Documentation: https://bliss.gitlab-pages.esrf.fr/mosca/
28
+
29
+ Tests coverage: https://bliss.gitlab-pages.esrf.fr/mosca/htmlcov/
30
+
31
+ .. image:: https://gitlab.esrf.fr/bliss/mosca/badges/11-split-mosca-ds-and-hardware-specific-ds/coverage.svg
32
+
mosca-2.0.2/README.rst ADDED
@@ -0,0 +1,8 @@
1
+ Mosca 2
2
+
3
+ Documentation: https://bliss.gitlab-pages.esrf.fr/mosca/
4
+
5
+ Tests coverage: https://bliss.gitlab-pages.esrf.fr/mosca/htmlcov/
6
+
7
+ .. image:: https://gitlab.esrf.fr/bliss/mosca/badges/11-split-mosca-ds-and-hardware-specific-ds/coverage.svg
8
+
@@ -0,0 +1,79 @@
1
+ {% set version = "2.0.0" %}
2
+
3
+ package:
4
+ name: mosca
5
+ version: {{ environ.get('GIT_DESCRIBE_TAG') }}
6
+
7
+ source:
8
+ path: ..
9
+
10
+ build:
11
+ number: 0
12
+
13
+ outputs:
14
+ - name: mosca-server
15
+ build:
16
+ noarch: python
17
+ script: $PYTHON -m pip install . --no-deps --no-build-isolation -vv
18
+ entry_points:
19
+ - mosca = mosca.tango.main:main
20
+ requirements:
21
+ host:
22
+ - python >=3.10
23
+ - pip
24
+ - setuptools
25
+ run:
26
+ - python >=3.10
27
+ - numpy
28
+ - pytango
29
+ - h5py
30
+ - ruamel.yaml
31
+ - hdf5plugin
32
+ - gevent
33
+ - cffi
34
+ - lark
35
+ test:
36
+ imports:
37
+ - mosca
38
+ - mosca.common
39
+ - mosca.control
40
+ - mosca.tango
41
+ commands:
42
+ - mosca --help
43
+
44
+ - name: mosca-client
45
+ build:
46
+ noarch: python
47
+ script: cd packages/mosca-client && $PYTHON -m pip install . --no-deps --no-build-isolation -vv
48
+ requirements:
49
+ host:
50
+ - python >=3.10
51
+ - pip
52
+ - setuptools
53
+ run:
54
+ - python >=3.10
55
+ - numpy
56
+ - pytango
57
+ - h5py
58
+ - ruamel.yaml
59
+ - hdf5plugin
60
+ - gevent
61
+ - numexpr
62
+ - tabulate
63
+ - blissdata
64
+ test:
65
+ imports:
66
+ - mosca_client
67
+ - mosca_client.tango
68
+ - blissdata_mosca
69
+ - bliss_mosca
70
+
71
+ about:
72
+ home: https://gitlab.esrf.fr/bliss/mosca
73
+ license: LGPL-3.0-or-later
74
+ license_file: LICENSE
75
+ summary: A library for the unified control of MCA detectors
76
+
77
+ extra:
78
+ recipe-maintainers:
79
+ - bliss
@@ -0,0 +1,9 @@
1
+ !!! warning "Work in progress"
2
+
3
+ ## Installation
4
+
5
+ Tbd
6
+
7
+ ## Tango
8
+
9
+ Tbd
@@ -0,0 +1,2 @@
1
+ !!! todo "todo: supported controllers documentation"
2
+
@@ -0,0 +1,4 @@
1
+ ::: mosca.control.buffer.CircularBuffer
2
+ options:
3
+ show_if_no_docstring: True
4
+ show_root_heading: True
@@ -0,0 +1,11 @@
1
+ ::: mosca.control.controller.PollResult
2
+ options:
3
+ show_root_heading: True
4
+
5
+ ::: mosca.control.controller.Controller
6
+ options:
7
+ show_if_no_docstring: True
8
+ show_root_heading: True
9
+ filters:
10
+ - "!^_.*"
11
+ - "!unprepare"
@@ -0,0 +1,7 @@
1
+ ::: mosca.control.mosca.Mosca
2
+ options:
3
+ show_if_no_docstring: True
4
+ show_root_heading: True
5
+ filters:
6
+ - "!^_.*"
7
+ - "!unprepare"