Commit 4aa5ef6f authored by Hafiz Emin Kosar's avatar Hafiz Emin Kosar
Browse files

- bugfix: changing roc would not change h(n); no pole in zero

parent 0971a316
......@@ -95,6 +95,7 @@ class zPlot():
self.fig = fig
self.ax = ax
self.ax.set_title('Pol- /Nullstellen Diagramm', fontsize='12')
self.ax.set_aspect('equal')
def onclick(event):
if self.action == 'add' and event.key == 'shift':
......@@ -217,6 +218,8 @@ class zPlot():
# Quantize point to grid and find closest point
p = self.qdelta * round(p.real / self.qdelta) + 1j * self.qdelta * round(p.imag / self.qdelta)
pPoint, ind = self.find_closest_point(p, mode)
if p == 0:
return
# Add new or delete point or update order
if pPoint is None:
......@@ -415,7 +418,7 @@ class zPlot():
poles_order = np.array(list((x.order for x in self.pp)))
zeroes = np.array(list((x.p for x in self.pz)), dtype=complex)
zeroes_order = np.array(list((x.order for x in self.pz)))
roc = self.roc['sigma']
roc = np.around(self.roc['sigma'], 5)
# update n-domain
h_n = ient_iz_ht(self.n, self.H0, poles, zeroes, poles_order, zeroes_order, roc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment