Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not overwrite np = numpy with an array size.
The function failed to be called with python3
  • Loading branch information
ochurlaud authored Jun 23, 2016
commit 8e6a853c71a56cf20c2fa4f6e5047814111cb9df
8 changes: 4 additions & 4 deletions control/robust.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def h2syn(P,nmeas,ncon):

n = np.size(P.A,0)
m = np.size(P.B,1)
np = np.size(P.C,0)
out = sb10hd(n,m,np,ncon,nmeas,P.A,P.B,P.C,P.D)
mp = np.size(P.C,0)
out = sb10hd(n,m,mp,ncon,nmeas,P.A,P.B,P.C,P.D)
Ak = out[0]
Bk = out[1]
Ck = out[2]
Expand Down Expand Up @@ -150,9 +150,9 @@ def hinfsyn(P,nmeas,ncon):
job = 3
n = np.size(P.A,0)
m = np.size(P.B,1)
np = np.size(P.C,0)
mp = np.size(P.C,0)
gamma = 1.e100
out = sb10ad(job,n,m,np,ncon,nmeas,gamma,P.A,P.B,P.C,P.D)
out = sb10ad(job,n,m,mp,ncon,nmeas,gamma,P.A,P.B,P.C,P.D)
gam = out[0]
Ak = out[1]
Bk = out[2]
Expand Down