Started implementation on sequence automation.

This commit is contained in:
jupfi 2023-12-08 18:14:25 +01:00
parent c0289c1d69
commit 9371f1fc36

View file

@ -127,9 +127,47 @@ class PulseSequence:
On execution of the pulse sequence the event duration will be set to the first value in the list. On execution of the pulse sequence the event duration will be set to the first value in the list.
Then the pulse sequence will be executed with the second value of the list. This is repeated until the pulse sequence has Then the pulse sequence will be executed with the second value of the list. This is repeated until the pulse sequence has
been executed with all values in the list.""" been executed with all values in the list."""
pass
@property
def name(self):
return self._name
@name.setter
def name(self, name : str):
if not isinstance(name, str):
raise TypeError("Name needs to be a string")
self._name = name
@property
def values(self):
return self._values
@values.setter
def values(self, values : list):
if not isinstance(values, list):
raise TypeError("Values needs to be a list")
self._values = values
class VariableGroup: class VariableGroup:
""" Variables can be grouped together. """ Variables can be grouped together.
If we have groups a and b the pulse sequence will be executed for all combinations of variables in a and b.""" If we have groups a and b the pulse sequence will be executed for all combinations of variables in a and b."""
pass
@property
def name(self):
return self._name
@name.setter
def name(self, name : str):
if not isinstance(name, str):
raise TypeError("Name needs to be a string")
self._name = name
@property
def variables(self):
return self._variables
@variables.setter
def variables(self, variables : list):
if not isinstance(variables, list):
raise TypeError("Variables needs to be a list")
self._variables = variables