mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-11-09 12:30:01 +00:00
Changed implementation of BaseSpectrometer.
This commit is contained in:
parent
576ca757e6
commit
a4431a087e
2 changed files with 12 additions and 9 deletions
|
@ -1,13 +1,13 @@
|
|||
class BaseSpectrometer:
|
||||
from nqrduck.module.module import Module
|
||||
|
||||
class BaseSpectrometer(Module):
|
||||
"""Base class for all spectrometers. All spectrometers should inherit from this class."""
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Name of the spectrometer."""
|
||||
raise NotImplementedError
|
||||
def __init__(self, model, view, controller):
|
||||
super().__init__(model, None, controller)
|
||||
# This stops the view from being added to the main window.
|
||||
self._view = None
|
||||
self._inner_view = view
|
||||
|
||||
@property
|
||||
def pulse_program(self):
|
||||
|
|
|
@ -3,4 +3,7 @@ from nqrduck.module.module_controller import ModuleController
|
|||
|
||||
class SpectrometerController(ModuleController):
|
||||
def __init__(self, module):
|
||||
super().__init__(module)
|
||||
super().__init__(module)
|
||||
|
||||
def _load_spectrometer_modules(self):
|
||||
pass
|
Loading…
Reference in a new issue