mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-11-09 12:30:01 +00:00
Added method to get time domain points.
This commit is contained in:
parent
727d19014d
commit
c77ecc6524
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,11 @@ class Function:
|
|||
f = sympy.lambdify([x], final_expr, "numpy")
|
||||
|
||||
return f(t)
|
||||
|
||||
def get_tdx(self, pulse_length : float) -> None:
|
||||
n = int(pulse_length / self.resolution)
|
||||
t = np.linspace(self.start_x, self.end_x, n)
|
||||
return t
|
||||
|
||||
def frequency_domain_plot(self, pulse_length: Decimal) -> MplWidget:
|
||||
mpl_widget = MplWidget()
|
||||
|
|
Loading…
Reference in a new issue