mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-12-22 08:17:49 +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")
|
f = sympy.lambdify([x], final_expr, "numpy")
|
||||||
|
|
||||||
return f(t)
|
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:
|
def frequency_domain_plot(self, pulse_length: Decimal) -> MplWidget:
|
||||||
mpl_widget = MplWidget()
|
mpl_widget = MplWidget()
|
||||||
|
|
Loading…
Reference in a new issue