pymodaq_plugins_andor 5.0.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.
- pymodaq_plugins_andor-5.0.0/.gitattributes +2 -0
- pymodaq_plugins_andor-5.0.0/.github/workflows/Test.yml +10 -0
- pymodaq_plugins_andor-5.0.0/.github/workflows/Testbase.yml +44 -0
- pymodaq_plugins_andor-5.0.0/.github/workflows/python-publish.yml +40 -0
- pymodaq_plugins_andor-5.0.0/.github/workflows/updater.yml +23 -0
- pymodaq_plugins_andor-5.0.0/.gitignore +116 -0
- pymodaq_plugins_andor-5.0.0/LICENSE +21 -0
- pymodaq_plugins_andor-5.0.0/MANIFEST.in +3 -0
- pymodaq_plugins_andor-5.0.0/PKG-INFO +93 -0
- pymodaq_plugins_andor-5.0.0/README.rst +45 -0
- pymodaq_plugins_andor-5.0.0/hatch_build.py +10 -0
- pymodaq_plugins_andor-5.0.0/icon.ico +0 -0
- pymodaq_plugins_andor-5.0.0/pyproject.toml +63 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/__init__.py +13 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_move_plugins/__init__.py +14 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_move_plugins/daq_move_Shamrock.py +241 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/__init__.py +0 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_0D/__init__.py +14 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_1D/__init__.py +14 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_1D/daq_1Dviewer_ShamrockCCD.py +186 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_1D/daq_1Dviewer_ShamrockCCDComposition.py +197 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_1D/daq_1Dviewer_ShamrockSCMOS.py +248 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_1D/daq_1Dviewer_ShamrockSCMOSComposition.py +259 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_2D/__init__.py +15 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorCCD.py +572 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorSCMOS.py +714 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/hardware/__init__.py +0 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/hardware/andor_sdk2/__init__.py +0 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/hardware/andor_sdk2/sdk2.py +1148 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/hardware/andor_sdk3/__init__.py +24 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/hardware/andor_sdk3/api.py +285 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/hardware/andor_sdk3/sdk3.py +326 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/hardware/andor_sdk3/sdk3cam.py +182 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/hardware/andor_sdk3/testNeo.py +97 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/hardware/shamrock_sdk.py +250 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/resources/__init__.py +0 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/resources/config_template.toml +2 -0
- pymodaq_plugins_andor-5.0.0/src/pymodaq_plugins_andor/utils.py +15 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Base
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
inputs:
|
|
6
|
+
python:
|
|
7
|
+
required: true
|
|
8
|
+
type: string
|
|
9
|
+
qt5:
|
|
10
|
+
required: true
|
|
11
|
+
type: string
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
env:
|
|
17
|
+
DISPLAY: ':99.0'
|
|
18
|
+
QT_DEBUG_PLUGINS: 1
|
|
19
|
+
steps:
|
|
20
|
+
- name: Set up Python ${{ inputs.python }}
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
- name: Install dependencies
|
|
23
|
+
uses: actions/setup-python@v4
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ inputs.python }}
|
|
26
|
+
- name: Install package
|
|
27
|
+
run: |
|
|
28
|
+
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
|
|
29
|
+
python -m pip install --upgrade pip
|
|
30
|
+
export QT_DEBUG_PLUGINS=1
|
|
31
|
+
pip install flake8 pytest pytest-cov pytest-qt pytest-xdist pytest-xvfb setuptools wheel numpy h5py ${{ inputs.qt5 }} toml
|
|
32
|
+
pip install pymodaq pyqt5
|
|
33
|
+
pip install -e .
|
|
34
|
+
- name: create local pymodaq folder and setting permissions
|
|
35
|
+
run: |
|
|
36
|
+
sudo mkdir /etc/.pymodaq
|
|
37
|
+
sudo chmod uo+rw /etc/.pymodaq
|
|
38
|
+
- name: Linting with flake8
|
|
39
|
+
run: |
|
|
40
|
+
# stop the build if there are Python syntax errors or undefined names
|
|
41
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=src/pymodaq/resources/QtDesigner_Ressources,docs
|
|
42
|
+
- name: Test with pytest
|
|
43
|
+
run: |
|
|
44
|
+
pytest -n auto
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# This workflow will upload a Python Package using Twine when a release is created
|
|
2
|
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
name: Upload Python Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
release:
|
|
8
|
+
types: [created]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
deploy:
|
|
12
|
+
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@v4
|
|
19
|
+
with:
|
|
20
|
+
python-version: '3.x'
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
run: |
|
|
23
|
+
python -m pip install --upgrade pip
|
|
24
|
+
pip install hatch hatchling toml twine
|
|
25
|
+
- name: Get history and tags for SCM versioning to work
|
|
26
|
+
run: |
|
|
27
|
+
git branch
|
|
28
|
+
git fetch --prune --unshallow
|
|
29
|
+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
|
30
|
+
hatch version
|
|
31
|
+
- name: Build
|
|
32
|
+
run: hatch build
|
|
33
|
+
- name: Check the build
|
|
34
|
+
run: twine check dist/*
|
|
35
|
+
- name: publish
|
|
36
|
+
env:
|
|
37
|
+
HATCH_INDEX_USER: ${{ secrets.PYPI_USERNAME }}
|
|
38
|
+
HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}
|
|
39
|
+
run: |
|
|
40
|
+
hatch publish
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: GitHub Actions Version Updater
|
|
2
|
+
|
|
3
|
+
# Controls when the action will run.
|
|
4
|
+
on:
|
|
5
|
+
schedule:
|
|
6
|
+
# Automatically run at 00:00 on day-of-month 5.
|
|
7
|
+
- cron: '0 0 5 * *'
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
# [Required] Access token with `workflow` scope.
|
|
17
|
+
token: ${{ secrets.WORKFLOW_SECRET }}
|
|
18
|
+
|
|
19
|
+
- name: Run GitHub Actions Version Updater
|
|
20
|
+
uses: saadmk11/github-actions-version-updater@v0.8.1
|
|
21
|
+
with:
|
|
22
|
+
# [Required] Access token with `workflow` scope.
|
|
23
|
+
token: ${{ secrets.WORKFLOW_SECRET }}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Compiled python modules.
|
|
2
|
+
*.pyc
|
|
3
|
+
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
|
|
7
|
+
*.py[cod]
|
|
8
|
+
*$py.class
|
|
9
|
+
|
|
10
|
+
# C extensions
|
|
11
|
+
*.so
|
|
12
|
+
|
|
13
|
+
# Distribution / packaging
|
|
14
|
+
.Python
|
|
15
|
+
build/
|
|
16
|
+
develop-eggs/
|
|
17
|
+
dist/
|
|
18
|
+
downloads/
|
|
19
|
+
eggs/
|
|
20
|
+
.eggs/
|
|
21
|
+
lib/
|
|
22
|
+
lib64/
|
|
23
|
+
parts/
|
|
24
|
+
sdist/
|
|
25
|
+
var/
|
|
26
|
+
wheels/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.installed.cfg
|
|
29
|
+
*.egg
|
|
30
|
+
MANIFEST
|
|
31
|
+
|
|
32
|
+
# PyInstaller
|
|
33
|
+
# Usually these files are written by a python script from a template
|
|
34
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
35
|
+
*.manifest
|
|
36
|
+
*.spec
|
|
37
|
+
|
|
38
|
+
# Installer logs
|
|
39
|
+
pip-log.txt
|
|
40
|
+
pip-delete-this-directory.txt
|
|
41
|
+
|
|
42
|
+
# Unit test / coverage reports
|
|
43
|
+
htmlcov/
|
|
44
|
+
.tox/
|
|
45
|
+
.coverage
|
|
46
|
+
.coverage.*
|
|
47
|
+
.cache
|
|
48
|
+
nosetests.xml
|
|
49
|
+
coverage.xml
|
|
50
|
+
*.cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
|
|
63
|
+
# Flask stuff:
|
|
64
|
+
instance/
|
|
65
|
+
.webassets-cache
|
|
66
|
+
|
|
67
|
+
# Scrapy stuff:
|
|
68
|
+
.scrapy
|
|
69
|
+
|
|
70
|
+
# Sphinx documentation
|
|
71
|
+
docs/_build/
|
|
72
|
+
|
|
73
|
+
# PyBuilder
|
|
74
|
+
target/
|
|
75
|
+
|
|
76
|
+
# Jupyter Notebook
|
|
77
|
+
.ipynb_checkpoints
|
|
78
|
+
|
|
79
|
+
# pyenv
|
|
80
|
+
.python-version
|
|
81
|
+
|
|
82
|
+
# celery beat schedule file
|
|
83
|
+
celerybeat-schedule
|
|
84
|
+
|
|
85
|
+
# SageMath parsed files
|
|
86
|
+
*.sage.py
|
|
87
|
+
|
|
88
|
+
# Environments
|
|
89
|
+
.env
|
|
90
|
+
.venv
|
|
91
|
+
env/
|
|
92
|
+
venv/
|
|
93
|
+
ENV/
|
|
94
|
+
env.bak/
|
|
95
|
+
venv.bak/
|
|
96
|
+
|
|
97
|
+
# Spyder project settings
|
|
98
|
+
.spyderproject
|
|
99
|
+
.spyproject
|
|
100
|
+
|
|
101
|
+
# Rope project settings
|
|
102
|
+
.ropeproject
|
|
103
|
+
|
|
104
|
+
# mkdocs documentation
|
|
105
|
+
/site
|
|
106
|
+
|
|
107
|
+
# mypy
|
|
108
|
+
.mypy_cache/
|
|
109
|
+
|
|
110
|
+
# pycharm
|
|
111
|
+
.idea/
|
|
112
|
+
.idea/*
|
|
113
|
+
|
|
114
|
+
*yacctab.py
|
|
115
|
+
*lextab.py
|
|
116
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Sebastien Weber <sebastien.weber@cemes.fr>
|
|
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
|
|
13
|
+
all 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
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pymodaq_plugins_andor
|
|
3
|
+
Version: 5.0.0
|
|
4
|
+
Summary: Set of PyMoDAQ plugins for Andor Camera (CCD camera using SDK2, SCMOS cameras using SDK3...)
|
|
5
|
+
Project-URL: Homepage, https://pymodaq.cnrs.fr
|
|
6
|
+
Project-URL: Documentation , https://pymodaq.cnrs.fr
|
|
7
|
+
Project-URL: Repository , https://github.com/PyMoDAQ/pymodaq_plugins_andor
|
|
8
|
+
Author-email: Weber Sébastien <sebastien.weber@cemes.fr>
|
|
9
|
+
Maintainer-email: Weber Sébastien <sebastien.weber@cemes.fr>
|
|
10
|
+
License: The MIT License (MIT)
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2021 Sebastien Weber <sebastien.weber@cemes.fr>
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in
|
|
22
|
+
all copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
30
|
+
THE SOFTWARE.
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
33
|
+
Classifier: Intended Audience :: Science/Research
|
|
34
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
35
|
+
Classifier: Natural Language :: English
|
|
36
|
+
Classifier: Operating System :: OS Independent
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
40
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
41
|
+
Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
|
|
42
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
43
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
44
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
45
|
+
Requires-Python: >=3.8
|
|
46
|
+
Requires-Dist: pymodaq>=5.0.0
|
|
47
|
+
Description-Content-Type: text/x-rst
|
|
48
|
+
|
|
49
|
+
pymodaq_plugins_andor (Andor)
|
|
50
|
+
#############################
|
|
51
|
+
|
|
52
|
+
.. image:: https://img.shields.io/pypi/v/pymodaq_plugins_andor.svg
|
|
53
|
+
:target: https://pypi.org/project/pymodaq_plugins_andor/
|
|
54
|
+
:alt: Latest Version
|
|
55
|
+
|
|
56
|
+
.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
|
|
57
|
+
:target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
|
|
58
|
+
:alt: Documentation Status
|
|
59
|
+
|
|
60
|
+
.. image:: https://github.com/PyMoDAQ/pymodaq_plugins_andor/workflows/Upload%20Python%20Package/badge.svg
|
|
61
|
+
:target: https://github.com/PyMoDAQ/pymodaq_plugins_andor
|
|
62
|
+
|
|
63
|
+
Set of PyMoDAQ plugins for Andor Camera (CCD camera using SDK2, SCMOS cameras using SDK3...)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
Authors
|
|
67
|
+
=======
|
|
68
|
+
|
|
69
|
+
* Sébastien. J. Weber
|
|
70
|
+
|
|
71
|
+
Instruments
|
|
72
|
+
===========
|
|
73
|
+
Below is the list of instruments included in this plugin
|
|
74
|
+
|
|
75
|
+
Actuators
|
|
76
|
+
+++++++++
|
|
77
|
+
|
|
78
|
+
* **Shamrock**: Shamrock series of spectrometer used as a monochromator
|
|
79
|
+
|
|
80
|
+
Viewer1D
|
|
81
|
+
++++++++
|
|
82
|
+
|
|
83
|
+
* **ShamrockCCD**: Shamrock series of spectrometer using the Andor CCD cameras (built using double inheritance)
|
|
84
|
+
* **ShamrockSCMOS**: Shamrock series of spectrometer using the Andor SCMOS cameras (Not tested) (built using double inheritance)
|
|
85
|
+
* **ShamrockCCDComposition**: Shamrock series of spectrometer using the Andor CCD cameras (built using CCD camera inheritance and Shamrock composition)
|
|
86
|
+
* **ShamrockSCMOSComposition**: Shamrock series of spectrometer using the Andor SCMOS cameras (Not tested) (built using SCMOS camera inheritance and Shamrock composition)
|
|
87
|
+
|
|
88
|
+
Viewer2D
|
|
89
|
+
++++++++
|
|
90
|
+
|
|
91
|
+
* **AndorCCD**: Andor CCD camera using the SDK2
|
|
92
|
+
* **AndorSCMOS**: Andor CCD camera using the SDK3
|
|
93
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
pymodaq_plugins_andor (Andor)
|
|
2
|
+
#############################
|
|
3
|
+
|
|
4
|
+
.. image:: https://img.shields.io/pypi/v/pymodaq_plugins_andor.svg
|
|
5
|
+
:target: https://pypi.org/project/pymodaq_plugins_andor/
|
|
6
|
+
:alt: Latest Version
|
|
7
|
+
|
|
8
|
+
.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
|
|
9
|
+
:target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
|
|
10
|
+
:alt: Documentation Status
|
|
11
|
+
|
|
12
|
+
.. image:: https://github.com/PyMoDAQ/pymodaq_plugins_andor/workflows/Upload%20Python%20Package/badge.svg
|
|
13
|
+
:target: https://github.com/PyMoDAQ/pymodaq_plugins_andor
|
|
14
|
+
|
|
15
|
+
Set of PyMoDAQ plugins for Andor Camera (CCD camera using SDK2, SCMOS cameras using SDK3...)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Authors
|
|
19
|
+
=======
|
|
20
|
+
|
|
21
|
+
* Sébastien. J. Weber
|
|
22
|
+
|
|
23
|
+
Instruments
|
|
24
|
+
===========
|
|
25
|
+
Below is the list of instruments included in this plugin
|
|
26
|
+
|
|
27
|
+
Actuators
|
|
28
|
+
+++++++++
|
|
29
|
+
|
|
30
|
+
* **Shamrock**: Shamrock series of spectrometer used as a monochromator
|
|
31
|
+
|
|
32
|
+
Viewer1D
|
|
33
|
+
++++++++
|
|
34
|
+
|
|
35
|
+
* **ShamrockCCD**: Shamrock series of spectrometer using the Andor CCD cameras (built using double inheritance)
|
|
36
|
+
* **ShamrockSCMOS**: Shamrock series of spectrometer using the Andor SCMOS cameras (Not tested) (built using double inheritance)
|
|
37
|
+
* **ShamrockCCDComposition**: Shamrock series of spectrometer using the Andor CCD cameras (built using CCD camera inheritance and Shamrock composition)
|
|
38
|
+
* **ShamrockSCMOSComposition**: Shamrock series of spectrometer using the Andor SCMOS cameras (Not tested) (built using SCMOS camera inheritance and Shamrock composition)
|
|
39
|
+
|
|
40
|
+
Viewer2D
|
|
41
|
+
++++++++
|
|
42
|
+
|
|
43
|
+
* **AndorCCD**: Andor CCD camera using the SDK2
|
|
44
|
+
* **AndorSCMOS**: Andor CCD camera using the SDK3
|
|
45
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
from hatchling.metadata.plugin.interface import MetadataHookInterface
|
|
3
|
+
from pymodaq_utils.resources.hatch_build_plugins import update_metadata_from_toml
|
|
4
|
+
|
|
5
|
+
here = Path(__file__).absolute().parent
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PluginInfoTomlHook(MetadataHookInterface):
|
|
9
|
+
def update(self, metadata: dict) -> None:
|
|
10
|
+
update_metadata_from_toml(metadata, here)
|
|
Binary file
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[features] # defines the plugin features contained into this plugin
|
|
2
|
+
instruments = true # true if plugin contains instrument classes (else false, notice the lowercase for toml files)
|
|
3
|
+
extensions = false # true if plugins contains dashboard extensions
|
|
4
|
+
models = false # true if plugins contains pid models
|
|
5
|
+
h5exporters = false # true if plugin contains custom h5 file exporters
|
|
6
|
+
scanners = false # true if plugin contains custom scan layout (daq_scan extensions)
|
|
7
|
+
|
|
8
|
+
[urls]
|
|
9
|
+
package-url = 'https://github.com/PyMoDAQ/pymodaq_plugins_andor'
|
|
10
|
+
|
|
11
|
+
[project]
|
|
12
|
+
name = "pymodaq_plugins_andor"
|
|
13
|
+
description = 'Set of PyMoDAQ plugins for Andor Camera (CCD camera using SDK2, SCMOS cameras using SDK3...)'
|
|
14
|
+
dependencies = [
|
|
15
|
+
"pymodaq>=5.0.0",
|
|
16
|
+
#todo: list here all dependencies your package may have
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
authors = [
|
|
20
|
+
{name = "Weber Sébastien", email = 'sebastien.weber@cemes.fr'},
|
|
21
|
+
#todo: list here all authors of your plugin
|
|
22
|
+
]
|
|
23
|
+
maintainers = [
|
|
24
|
+
{name = "Weber Sébastien", email = 'sebastien.weber@cemes.fr'},
|
|
25
|
+
#todo: list here all maintainers of your plugin
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
# nottodo: leave everything below as is!
|
|
29
|
+
|
|
30
|
+
dynamic = ["version", "urls", "entry-points"]
|
|
31
|
+
readme = "README.rst"
|
|
32
|
+
license = { file="LICENSE" }
|
|
33
|
+
requires-python = ">=3.8"
|
|
34
|
+
|
|
35
|
+
classifiers = [
|
|
36
|
+
"Development Status :: 5 - Production/Stable",
|
|
37
|
+
"Intended Audience :: Science/Research",
|
|
38
|
+
"License :: OSI Approved :: MIT License",
|
|
39
|
+
"Natural Language :: English",
|
|
40
|
+
"Operating System :: OS Independent",
|
|
41
|
+
"Programming Language :: Python :: 3.8",
|
|
42
|
+
"Programming Language :: Python :: 3.9",
|
|
43
|
+
"Programming Language :: Python :: 3.10",
|
|
44
|
+
"Programming Language :: Python :: 3.11",
|
|
45
|
+
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
|
|
46
|
+
"Topic :: Scientific/Engineering :: Visualization",
|
|
47
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
48
|
+
"Topic :: Software Development :: User Interfaces",
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
[build-system]
|
|
52
|
+
requires = [
|
|
53
|
+
"hatchling>=1.9.0",
|
|
54
|
+
"hatch-vcs", "toml",
|
|
55
|
+
"pymodaq_utils>=0.0.6",
|
|
56
|
+
]
|
|
57
|
+
build-backend = "hatchling.build"
|
|
58
|
+
|
|
59
|
+
[tool.hatch.metadata.hooks.custom]
|
|
60
|
+
|
|
61
|
+
[tool.hatch.version]
|
|
62
|
+
source = "vcs"
|
|
63
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
from pymodaq_utils.logger import set_logger, get_module_name
|
|
4
|
+
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from .utils import Config
|
|
7
|
+
from pymodaq_utils.utils import get_version, PackageNotFoundError
|
|
8
|
+
|
|
9
|
+
config = Config()
|
|
10
|
+
try:
|
|
11
|
+
__version__ = get_version(__package__)
|
|
12
|
+
except PackageNotFoundError:
|
|
13
|
+
__version__ = '0.0.0dev'
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import importlib
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
from .. import set_logger
|
|
4
|
+
|
|
5
|
+
logger = set_logger('move_plugins', add_to_console=False)
|
|
6
|
+
|
|
7
|
+
for path in Path(__file__).parent.iterdir():
|
|
8
|
+
try:
|
|
9
|
+
if '__init__' not in str(path):
|
|
10
|
+
importlib.import_module('.' + path.stem, __package__)
|
|
11
|
+
except Exception as e:
|
|
12
|
+
logger.warning("{:} plugin couldn't be loaded due to some missing packages or errors: {:}".format(path.stem, str(e)))
|
|
13
|
+
pass
|
|
14
|
+
|