Skip to content

Commit

Permalink
Renamed instances of np.matrix() to np.array()
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbloice committed Jan 28, 2025
1 parent bbe882c commit d7ab599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrea/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def execute(self, views: list) -> list:
for i in range(0, len(views)):
l = views[i]
res = [[int(x != y) for y in l] for x in l]
res = np.matrix(res)
res = np.array(res)
labels = labels + res

return labels
Expand Down Expand Up @@ -369,7 +369,7 @@ def execute(self, views: list) -> list:

l = views[i]
res = [[int(x == y) for y in l] for x in l]
res = np.matrix(res)
res = np.array(res)
labels = labels + res

# in_place=False does not work, we have to edit the matrix in place
Expand Down

0 comments on commit d7ab599

Please sign in to comment.