pymodaq_plugins_stanford_research_systems 1.0.1__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 (33) hide show
  1. pymodaq_plugins_stanford_research_systems-1.0.1/.gitattributes +2 -0
  2. pymodaq_plugins_stanford_research_systems-1.0.1/.github/workflows/Test.yml +10 -0
  3. pymodaq_plugins_stanford_research_systems-1.0.1/.github/workflows/Testbase.yml +44 -0
  4. pymodaq_plugins_stanford_research_systems-1.0.1/.github/workflows/python-publish.yml +40 -0
  5. pymodaq_plugins_stanford_research_systems-1.0.1/.gitignore +115 -0
  6. pymodaq_plugins_stanford_research_systems-1.0.1/LICENSE +21 -0
  7. pymodaq_plugins_stanford_research_systems-1.0.1/MANIFEST.in +3 -0
  8. pymodaq_plugins_stanford_research_systems-1.0.1/PKG-INFO +101 -0
  9. pymodaq_plugins_stanford_research_systems-1.0.1/README.rst +51 -0
  10. pymodaq_plugins_stanford_research_systems-1.0.1/__init__.py +3 -0
  11. pymodaq_plugins_stanford_research_systems-1.0.1/hatch_build.py +10 -0
  12. pymodaq_plugins_stanford_research_systems-1.0.1/icon.ico +0 -0
  13. pymodaq_plugins_stanford_research_systems-1.0.1/pyproject.toml +64 -0
  14. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/__init__.py +11 -0
  15. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/daq_move_plugins/__init__.py +13 -0
  16. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/daq_viewer_plugins/__init__.py +3 -0
  17. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/daq_viewer_plugins/plugins_0D/__init__.py +13 -0
  18. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/daq_viewer_plugins/plugins_0D/daq_0Dviewer_LockInSR830.py +183 -0
  19. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/daq_viewer_plugins/plugins_0D/daq_0Dviewer_LockInSR830Legacy.py +235 -0
  20. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/daq_viewer_plugins/plugins_1D/__init__.py +13 -0
  21. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/daq_viewer_plugins/plugins_1D/daq_1Dviewer_LockInSR830.py +75 -0
  22. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/daq_viewer_plugins/plugins_2D/__init__.py +14 -0
  23. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/daq_viewer_plugins/plugins_ND/__init__.py +13 -0
  24. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/exporters/__init__.py +6 -0
  25. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/extensions/__init__.py +6 -0
  26. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/hardware/__init__.py +0 -0
  27. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/models/PIDModelTemplate.py +90 -0
  28. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/models/__init__.py +6 -0
  29. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/resources/__init__.py +0 -0
  30. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/resources/config_template.toml +2 -0
  31. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/scanners/__init__.py +6 -0
  32. pymodaq_plugins_stanford_research_systems-1.0.1/src/pymodaq_plugins_stanford_research_systems/utils.py +15 -0
  33. pymodaq_plugins_stanford_research_systems-1.0.1/tests/test_plugin_package_structure.py +91 -0
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -0,0 +1,10 @@
1
+ name: 'Tests'
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ call_workflow:
7
+ uses: ./.github/workflows/Testbase.yml
8
+ with:
9
+ python: '3.10'
10
+ qt5: 'pyqt5'
@@ -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@v3
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 -e .
33
+ pip install pymodaq
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,115 @@
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
@@ -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,3 @@
1
+ include README.rst
2
+ include LICENSE
3
+ graft src
@@ -0,0 +1,101 @@
1
+ Metadata-Version: 2.4
2
+ Name: pymodaq_plugins_stanford_research_systems
3
+ Version: 1.0.1
4
+ Summary: Set of plugins for the Stanford Research Systems (SRS) Instruments
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_stanford_research_systems
8
+ Author-email: "Sebastien J. Weber" <sebastien.weber@cemes.fr>
9
+ Maintainer-email: "Sebastien J. Weber" <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-utils
47
+ Requires-Dist: pymodaq>=4.0.0
48
+ Requires-Dist: pyvisa
49
+ Description-Content-Type: text/x-rst
50
+
51
+ pymodaq_plugins_stanford_research_systems
52
+ #########################################
53
+
54
+ .. the following must be adapted to your developed package, links to pypi, github description...
55
+
56
+ .. image:: https://img.shields.io/pypi/v/pymodaq_plugins_stanford_research_systems.svg
57
+ :target: https://pypi.org/project/pymodaq_plugins_stanford_research_systems/
58
+ :alt: Latest Version
59
+
60
+ .. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
61
+ :target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
62
+ :alt: Documentation Status
63
+
64
+ .. image:: https://github.com/PyMoDAQ/pymodaq_plugins_stanford_research_systems/workflows/Upload%20Python%20Package/badge.svg
65
+ :target: https://github.com/PyMoDAQ/pymodaq_plugins_stanford_research_systems
66
+ :alt: Publication Status
67
+
68
+ .. image:: https://github.com/PyMoDAQ/pymodaq_plugins_stanford_research_systems/actions/workflows/Test.yml/badge.svg
69
+ :target: https://github.com/PyMoDAQ/pymodaq_plugins_stanford_research_systems/actions/workflows/Test.yml
70
+
71
+
72
+ Set of instruments from the Stanford Research Systems brand
73
+
74
+ Authors
75
+ =======
76
+
77
+ * Sebastien J. Weber (sebastien.weber@cemes.fr)
78
+
79
+
80
+
81
+ Instruments
82
+ ===========
83
+
84
+ Below is the list of instruments included in this plugin
85
+
86
+
87
+
88
+ Viewer0D
89
+ ++++++++
90
+
91
+ * * **LockinSR830Legacy**: LockIn Amplifier SR830 (legacy implementation)
92
+ * * **LockinSR830**: LockIn Amplifier SR830 (uses the pymeasure driver and is recommended)
93
+
94
+
95
+
96
+ Installation instructions
97
+ =========================
98
+
99
+ * PyMoDAQ version > 4.0.8
100
+ * VISA backend if connected using GPIB
101
+
@@ -0,0 +1,51 @@
1
+ pymodaq_plugins_stanford_research_systems
2
+ #########################################
3
+
4
+ .. the following must be adapted to your developed package, links to pypi, github description...
5
+
6
+ .. image:: https://img.shields.io/pypi/v/pymodaq_plugins_stanford_research_systems.svg
7
+ :target: https://pypi.org/project/pymodaq_plugins_stanford_research_systems/
8
+ :alt: Latest Version
9
+
10
+ .. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
11
+ :target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
12
+ :alt: Documentation Status
13
+
14
+ .. image:: https://github.com/PyMoDAQ/pymodaq_plugins_stanford_research_systems/workflows/Upload%20Python%20Package/badge.svg
15
+ :target: https://github.com/PyMoDAQ/pymodaq_plugins_stanford_research_systems
16
+ :alt: Publication Status
17
+
18
+ .. image:: https://github.com/PyMoDAQ/pymodaq_plugins_stanford_research_systems/actions/workflows/Test.yml/badge.svg
19
+ :target: https://github.com/PyMoDAQ/pymodaq_plugins_stanford_research_systems/actions/workflows/Test.yml
20
+
21
+
22
+ Set of instruments from the Stanford Research Systems brand
23
+
24
+ Authors
25
+ =======
26
+
27
+ * Sebastien J. Weber (sebastien.weber@cemes.fr)
28
+
29
+
30
+
31
+ Instruments
32
+ ===========
33
+
34
+ Below is the list of instruments included in this plugin
35
+
36
+
37
+
38
+ Viewer0D
39
+ ++++++++
40
+
41
+ * * **LockinSR830Legacy**: LockIn Amplifier SR830 (legacy implementation)
42
+ * * **LockinSR830**: LockIn Amplifier SR830 (uses the pymeasure driver and is recommended)
43
+
44
+
45
+
46
+ Installation instructions
47
+ =========================
48
+
49
+ * PyMoDAQ version > 4.0.8
50
+ * VISA backend if connected using GPIB
51
+
@@ -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)
@@ -0,0 +1,64 @@
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_stanford_research_systems'
10
+
11
+ [project]
12
+ name = "pymodaq_plugins_stanford_research_systems"
13
+ description = 'Set of plugins for the Stanford Research Systems (SRS) Instruments'
14
+ dependencies = [
15
+ "pymodaq>=4.0.0",
16
+ "pyvisa",
17
+ "pymodaq_utils",
18
+ ]
19
+
20
+ authors = [
21
+ {name = "Sebastien J. Weber", email = "sebastien.weber@cemes.fr"},
22
+ #todo: list here all authors of your plugin
23
+ ]
24
+ maintainers = [
25
+ {name = "Sebastien J. Weber", email = "sebastien.weber@cemes.fr"},
26
+ #todo: list here all maintainers of your plugin
27
+ ]
28
+
29
+ # nottodo: leave everything below as is!
30
+
31
+ dynamic = ["version", "urls", "entry-points"]
32
+ readme = "README.rst"
33
+ license = { file="LICENSE" }
34
+ requires-python = ">=3.8"
35
+
36
+ classifiers = [
37
+ "Development Status :: 5 - Production/Stable",
38
+ "Intended Audience :: Science/Research",
39
+ "License :: OSI Approved :: MIT License",
40
+ "Natural Language :: English",
41
+ "Operating System :: OS Independent",
42
+ "Programming Language :: Python :: 3.8",
43
+ "Programming Language :: Python :: 3.9",
44
+ "Programming Language :: Python :: 3.10",
45
+ "Programming Language :: Python :: 3.11",
46
+ "Topic :: Scientific/Engineering :: Human Machine Interfaces",
47
+ "Topic :: Scientific/Engineering :: Visualization",
48
+ "Topic :: Software Development :: Libraries :: Python Modules",
49
+ "Topic :: Software Development :: User Interfaces",
50
+ ]
51
+
52
+ [build-system]
53
+ requires = [
54
+ "hatchling>=1.9.0",
55
+ "hatch-vcs", "toml",
56
+ "pymodaq_utils>=0.0.6",
57
+ ]
58
+ build-backend = "hatchling.build"
59
+
60
+ [tool.hatch.metadata.hooks.custom]
61
+
62
+ [tool.hatch.version]
63
+ source = "vcs"
64
+
@@ -0,0 +1,11 @@
1
+ from pathlib import Path
2
+ from .utils import Config
3
+ from pymodaq_utils.utils import get_version, PackageNotFoundError
4
+ from pymodaq_utils.logger import set_logger, get_module_name
5
+
6
+
7
+ config = Config()
8
+ try:
9
+ __version__ = get_version(__package__)
10
+ except PackageNotFoundError:
11
+ __version__ = '0.0.0dev'
@@ -0,0 +1,13 @@
1
+ import importlib
2
+ from pathlib import Path
3
+ from .. import set_logger
4
+ logger = set_logger('move_plugins', add_to_console=False)
5
+
6
+ for path in Path(__file__).parent.iterdir():
7
+ try:
8
+ if '__init__' not in str(path):
9
+ importlib.import_module('.' + path.stem, __package__)
10
+ except Exception as e:
11
+ logger.warning("{:} plugin couldn't be loaded due to some missing packages or errors: {:}".format(path.stem, str(e)))
12
+ pass
13
+
@@ -0,0 +1,13 @@
1
+ import importlib
2
+ from pathlib import Path
3
+ from ... import set_logger
4
+ logger = set_logger('viewer0D_plugins', add_to_console=False)
5
+
6
+ for path in Path(__file__).parent.iterdir():
7
+ try:
8
+ if '__init__' not in str(path):
9
+ importlib.import_module('.' + path.stem, __package__)
10
+ except Exception as e:
11
+ logger.warning("{:} plugin couldn't be loaded due to some missing packages or errors: {:}".format(path.stem, str(e)))
12
+ pass
13
+