Skip to content

Commit

Permalink
fixed python3 incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tisimst committed Feb 19, 2014
1 parent b13183a commit 2e90fa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyDOE/var_regression_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def var_regression_matrix(H, x, model, sigma=1):
x = x.T

if np.rank(H)<(np.dot(H.T, H)).shape[0]:
raise ValueError, "model and DOE don't suit together"
raise ValueError("model and DOE don't suit together")

x_mod = build_regression_matrix(x, model)
var = sigma**2*np.dot(np.dot(x_mod.T, np.linalg.inv(np.dot(H.T, H))), x_mod)
return var
return var

0 comments on commit 2e90fa4

Please sign in to comment.