mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-12-22 00:10:26 +00:00
Upsi. Implemented this in the wrong method.
This commit is contained in:
parent
9844c0df0c
commit
9c17c99f53
1 changed files with 0 additions and 8 deletions
|
@ -28,14 +28,6 @@ class BaseSpectrometerModel(ModuleModel):
|
|||
|
||||
def get_setting(self):
|
||||
return float(self.value)
|
||||
|
||||
def get_setting_by_name(self, name : str) -> "Setting":
|
||||
for setting in self.settings:
|
||||
if setting.name == name:
|
||||
return setting
|
||||
raise ValueError("Setting with name %s not found" % name)
|
||||
|
||||
|
||||
class PulseParameter:
|
||||
"""A pulse parameter is a value that can be different for each event in a pulse sequence.
|
||||
E.g. the transmit pulse power or the phase of the transmit pulse.
|
||||
|
|
Loading…
Reference in a new issue