commit cf0f70ac18415f788727b2a09e88b6db43cd4de2 Author: jupfi Date: Fri Jul 7 15:07:27 2023 +0200 Initial commit. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c1a36ca --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.pyc +*$py.class + +# Distribution / packaging +dist/ +build/ +*.egg-info/ + +# IDE-specific files +.idea/ +.vscode/ + +# Logs +*.log + +# Virtual environments +venv/ + +# Other +*.DS_Store \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..94b1433 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Julia Pfitzer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..39c8137 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,30 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "nqrduck-pulseprogrammer" +version = "0.0.1" +authors = [ + { name="Julia Pfitzer", email="git@jupfi.me" }, +] + +description = "A module for the NQRduck program (a simple python scriptâ„¢) to do pulse programming." +readme = "README.md" +license = { file="LICENSE" } +requires-python = ">=3.8" + +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +dependencies = [ + "matplotlib", + "pyqt5", + "NQRduck", +] + +[project.entry-points."nqrduck"] +"nqrduck-pulseprogrammer" = "nqrduck_pulseprogrammer.pulseprogrammer:PulseProgrammer" diff --git a/src/nqrduck_pulseprogrammer/controller.py b/src/nqrduck_pulseprogrammer/controller.py new file mode 100644 index 0000000..53039f0 --- /dev/null +++ b/src/nqrduck_pulseprogrammer/controller.py @@ -0,0 +1,8 @@ +import logging +from PyQt5.QtCore import pyqtSlot, pyqtSignal +from nqrduck.module.module_controller import ModuleController + +logger = logging.getLogger(__name__) + +class PulseProgrammerController(ModuleController): + pass \ No newline at end of file diff --git a/src/nqrduck_pulseprogrammer/model.py b/src/nqrduck_pulseprogrammer/model.py new file mode 100644 index 0000000..6bea55c --- /dev/null +++ b/src/nqrduck_pulseprogrammer/model.py @@ -0,0 +1,6 @@ +from PyQt5.QtCore import pyqtSignal +from nqrduck.module.module_model import ModuleModel + + +class PulseProgrammerModel(ModuleModel): + pass \ No newline at end of file diff --git a/src/nqrduck_pulseprogrammer/pulseprogrammer.py b/src/nqrduck_pulseprogrammer/pulseprogrammer.py new file mode 100644 index 0000000..32f4d4f --- /dev/null +++ b/src/nqrduck_pulseprogrammer/pulseprogrammer.py @@ -0,0 +1,7 @@ +from PyQt5.QtCore import pyqtSignal, QObject +from nqrduck.module.module import Module +from .model import PulseProgrammerModel +from .view import PulseProgrammerView +from .controller import PulseProgrammerController + +PulseProgrammer = Module(PulseProgrammerModel, PulseProgrammerView, PulseProgrammerController) diff --git a/src/nqrduck_pulseprogrammer/view.py b/src/nqrduck_pulseprogrammer/view.py new file mode 100644 index 0000000..75fa1f1 --- /dev/null +++ b/src/nqrduck_pulseprogrammer/view.py @@ -0,0 +1,8 @@ +import logging +from nqrduck.module.module_view import ModuleView + +logger = logging.getLogger(__name__) + + +class PulseProgrammerView(ModuleView): + pass \ No newline at end of file