Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions hatch_build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from pathlib import Path
from hatchling.metadata.plugin.interface import MetadataHookInterface
from pymodaq_utils.resources.hatch_build_plugins import update_metadata_from_toml

here = Path(__file__).absolute().parent


class PluginInfoTomlHook(MetadataHookInterface):
def update(self, metadata: dict) -> None:
update_metadata_from_toml(metadata, here)
24 changes: 0 additions & 24 deletions plugin_info.toml

This file was deleted.

65 changes: 65 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[features] # defines the plugin features contained into this plugin
instruments = true # true if plugin contains instrument classes (else false, notice the lowercase for toml files)
extensions = false # true if plugins contains dashboard extensions
models = false # true if plugins contains pid models
h5exporters = false # true if plugin contains custom h5 file exporters
scanners = false # true if plugin contains custom scan layout (daq_scan extensions)

[urls]
package-url = 'https://github.com/PyMoDAQ/pymodaq_plugins_standing_wave' #todo modify url by your plugin url

[project]
name = "pymodaq_plugins_standing_wave" #todo modify template by your plugin short name
description = 'some word about your plugin'
dependencies = [
"pymodaq>=5.0.0",
"pymodaq_plugins_daqmx",
"pymodaq_plugins_physik_instrumente"
#todo: list here all dependencies your package may have
]

authors = [
{name = "Weber Sebastien", email = "[email protected]"},
#todo: list here all authors of your plugin
]
maintainers = [
{name = "Weber Sebastien", email = "[email protected]"},
#todo: list here all maintainers of your plugin
]

# nottodo: leave everything below as is!

dynamic = ["version", "urls", "entry-points"]
readme = "README.rst"
license = { file="LICENSE" }
requires-python = ">=3.8"

classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
]

[build-system]
requires = [
"hatchling>=1.9.0",
"hatch-vcs", "toml",
"pymodaq_utils>=0.0.6",
]
build-backend = "hatchling.build"

[tool.hatch.metadata.hooks.custom]

[tool.hatch.version]
source = "vcs"

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

12 changes: 7 additions & 5 deletions src/pymodaq_plugins_standing_wave/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from pathlib import Path
from pymodaq.utils.logger import set_logger # to be imported by other modules.

from .utils import Config
config = Config()
from pymodaq_utils.utils import get_version, PackageNotFoundError
from pymodaq_utils.logger import set_logger, get_module_name

with open(str(Path(__file__).parent.joinpath('resources/VERSION')), 'r') as fvers:
__version__ = fvers.read().strip()
config = Config()
try:
__version__ = get_version(__package__)
except PackageNotFoundError:
__version__ = '0.0.0dev'
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ class DAQ_1DViewer_SW_GrabMove(DAQ_Viewer_base):

{'title': 'DAQmx', 'name': 'daqmx_params', 'type': 'group', 'children': [
{'title': 'AI Channel:', 'name': 'ai_channel', 'type': 'list',
'values': DAQmx.get_NIDAQ_channels(source_type='Analog_Input'),
'limits': DAQmx.get_NIDAQ_channels(source_type='Analog_Input'),
'value': f'{device_ai}/{channel_ai}'},
{'title': 'Clock Channel:', 'name': 'clock_channel', 'type': 'list',
'values': DAQmx.get_NIDAQ_channels(source_type='Terminals'),
'limits': DAQmx.get_NIDAQ_channels(source_type='Terminals'),
'value': f'/{device_ai}/{clock_ai_terminal}'},
{'title': 'Clock rate:', 'name': 'clock_rate', 'type': 'int',
'value': config('daqmx', 'clock_rate')},
{'title': 'Trigger Channel:', 'name': 'trigger_channel', 'type': 'list',
'values': DAQmx.get_NIDAQ_channels(source_type='Terminals'),
'limits': DAQmx.get_NIDAQ_channels(source_type='Terminals'),
'value': f'/{device_ai}/{trigger_ai_terminal}'},
{'title': 'Enable Trigger:', 'name': 'trigger_enabled', 'type': 'bool',
'value': config('daqmx', 'trigger_enabled')},
Expand Down
1 change: 0 additions & 1 deletion src/pymodaq_plugins_standing_wave/resources/VERSION

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ npts = 200
rate= 200

[daqmx]
device_ai = 'Dev3'
device_ai = 'Dev1'
channel_ai = 'ai0'
clock_ai_terminal = 'PFI0'
clock_rate = 20000
Expand Down
Loading