Changed implementation of BaseSpectrometer.

This commit is contained in:
jupfi 2023-07-03 21:58:36 +02:00
parent 576ca757e6
commit a4431a087e
2 changed files with 12 additions and 9 deletions

View file

@ -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.""" """Base class for all spectrometers. All spectrometers should inherit from this class."""
def __init__(self): def __init__(self, model, view, controller):
pass super().__init__(model, None, controller)
# This stops the view from being added to the main window.
@property self._view = None
def name(self): self._inner_view = view
"""Name of the spectrometer."""
raise NotImplementedError
@property @property
def pulse_program(self): def pulse_program(self):

View file

@ -4,3 +4,6 @@ from nqrduck.module.module_controller import ModuleController
class SpectrometerController(ModuleController): class SpectrometerController(ModuleController):
def __init__(self, module): def __init__(self, module):
super().__init__(module) super().__init__(module)
def _load_spectrometer_modules(self):
pass