mirror of
https://github.com/nqrduck/nqrduck-spectrometer-limenqr.git
synced 2024-11-09 11:10:03 +00:00
Added entry-points.
This commit is contained in:
parent
10c2d9b80f
commit
3439afca27
5 changed files with 29 additions and 2 deletions
|
@ -7,7 +7,7 @@ allow-direct-references = true
|
|||
|
||||
[project]
|
||||
name = "nqrduck-spectrometer-limenqr"
|
||||
version = "0.0.2"
|
||||
version = "0.0.3"
|
||||
authors = [
|
||||
{ name="Julia Pfitzer", email="git@jupfi.me" },
|
||||
]
|
||||
|
@ -27,3 +27,6 @@ dependencies = [
|
|||
"nqrduck-spectrometer",
|
||||
"pyqt5",
|
||||
]
|
||||
|
||||
[project.entry-points."nqrduck"]
|
||||
"nqrduck-spectrometer-limenqr" = "nqrduck_spectrometer_limenqr.limenqr:LimeNQR"
|
6
src/nqrduck_spectrometer_limenqr/controller.py
Normal file
6
src/nqrduck_spectrometer_limenqr/controller.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from nqrduck.module.module_controller import ModuleController
|
||||
|
||||
|
||||
class LimeNQRController(ModuleController):
|
||||
def __init__(self, module):
|
||||
super().__init__(module)
|
6
src/nqrduck_spectrometer_limenqr/limenqr.py
Normal file
6
src/nqrduck_spectrometer_limenqr/limenqr.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from nqrduck.module.module import Module
|
||||
from nqrduck_spectrometer_limenqr.model import LimeNQRModel
|
||||
from nqrduck_spectrometer_limenqr.view import LimeNQRView
|
||||
from nqrduck_spectrometer_limenqr.controller import LimeNQRController
|
||||
|
||||
Spectrometer = Module(LimeNQRModel, LimeNQRView, LimeNQRController)
|
12
src/nqrduck_spectrometer_limenqr/model.py
Normal file
12
src/nqrduck_spectrometer_limenqr/model.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import logging
|
||||
from nqrduck.module.module_model import ModuleModel
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class LimeNQRModel(ModuleModel):
|
||||
|
||||
def __init__(self, module) -> None:
|
||||
super().__init__(module)
|
||||
|
||||
def is_spectrometer(self):
|
||||
return True
|
0
src/nqrduck_spectrometer_limenqr/view.py
Normal file
0
src/nqrduck_spectrometer_limenqr/view.py
Normal file
Loading…
Reference in a new issue