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

@ -53,6 +53,11 @@ class Function:
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()
td = self.get_time_points(pulse_length) td = self.get_time_points(pulse_length)