Update `zeros` to `residues` in testcases
@@ -74,7 +74,7 @@ class VectorFittingTestCase(unittest.TestCase):
# compare both sets of parameters
self.assertTrue(np.allclose(vf.poles, vf2.poles))
- self.assertTrue(np.allclose(vf.zeros, vf2.zeros))
+ self.assertTrue(np.allclose(vf.residues, vf2.residues))
self.assertTrue(np.allclose(vf.proportional_coeff, vf2.proportional_coeff))
self.assertTrue(np.allclose(vf.constant_coeff, vf2.constant_coeff))
@@ -89,7 +89,7 @@ class VectorFittingTestCase(unittest.TestCase):
# non-passive example parameters from Gustavsen's passivity assessment paper:
vf.poles = np.array([-1, -5 + 6j])
- vf.zeros = np.array([[0.3, 4 + 5j], [0.1, 2 + 3j], [0.1, 2 + 3j], [0.4, 3 + 4j]])
+ vf.residues = np.array([[0.3, 4 + 5j], [0.1, 2 + 3j], [0.1, 2 + 3j], [0.4, 3 + 4j]])
vf.constant_coeff = np.array([0.2, 0.1, 0.1, 0.3])
vf.proportional_coeff = np.array([0.0, 0.0, 0.0, 0.0])
@@ -104,12 +104,12 @@ class VectorFittingTestCase(unittest.TestCase):
# check if model is now passive
self.assertTrue(vf.is_passive())
- # verify that perturbed zeros are correct
- passive_zeros = np.array([[0.11758964+0.j, 2.65059197+3.29414469j],
+ # verify that perturbed residues are correct
+ passive_residues = np.array([[0.11758964+0.j, 2.65059197+3.29414469j],
[-0.06802029+0.j, 0.77242142+1.44226975j],
[-0.06802029+0.j, 0.77242142+1.44226975j],
[0.24516918+0.j, 1.88377719+2.57735204j]])
- self.assertTrue(np.allclose(vf.zeros, passive_zeros))
+ self.assertTrue(np.allclose(vf.residues, passive_residues))
suite = unittest.TestLoader().loadTestsFromTestCase(VectorFittingTestCase)
