mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-12-22 08:17:49 +00:00
Implemented pulse shaping for lime.
This commit is contained in:
parent
46c167841b
commit
18e25155a3
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,7 @@ class Function:
|
|||
def __init__(self, expr) -> None:
|
||||
self.parameters = []
|
||||
self.expr = expr
|
||||
self.resolution = 22e-9 * 16 # 1e-6
|
||||
self.resolution = 16/30.72e6
|
||||
self.start_x = -1
|
||||
self.end_x = 1
|
||||
|
||||
|
@ -73,6 +73,10 @@ class Function:
|
|||
mpl_widget.canvas.ax.set_xlabel("Time in s")
|
||||
mpl_widget.canvas.ax.set_ylabel("Magnitude")
|
||||
return mpl_widget
|
||||
|
||||
def get_pulse_amplitude(self, pulse_length: float) -> np.array:
|
||||
"""Returns the pulse amplitude in the time domain."""
|
||||
return self.evaluate(pulse_length)
|
||||
|
||||
def add_parameter(self, parameter: "Function.Parameter"):
|
||||
self.parameters.append(parameter)
|
||||
|
|
Loading…
Reference in a new issue