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."""
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):

View file

@ -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