Added method to get time domain points.

This commit is contained in:
jupfi 2023-08-02 11:04:27 +02:00
parent 727d19014d
commit c77ecc6524

View file

@ -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()