Commit add54c57 authored by Linus's avatar Linus
Browse files

[models.iosys] fix indexing bug

parent a263bf4d
Pipeline #102078 passed with stages
in 41 minutes and 22 seconds
......@@ -1253,8 +1253,8 @@ class LTIModel(InputStateOutputModel):
ast_ews = ew[ast_idx]
idx = ast_ews.argsort()
ast_lev = self.A.source.from_numpy(lev[:, idx][:, ast_idx][:, 0, :].T)
ast_rev = self.A.range.from_numpy(rev[:, idx][:, ast_idx][:, 0, :].T)
ast_lev = self.A.source.from_numpy(lev[:, ast_idx][:, 0, :][:, idx].T)
ast_rev = self.A.range.from_numpy(rev[:, ast_idx][:, 0, :][:, idx].T)
return ast_lev, ast_ews[idx], ast_rev
......
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