Skip to content

Commit b5247be

Browse files
SvenSerneelsclaude
andcommitted
fix deprecated np.matrix in test_sprm.py
Replace np.matrix with np.asarray for NumPy compatibility. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0d9a7df commit b5247be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/direpack/test/test_sprm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def tearDownClass(cls):
2626

2727
def setUp(self):
2828
self.data = ps.read_csv("./data/Returns_shares.csv")
29-
self.datav = np.matrix(self.data.values[:, 2:8].astype("float64"))
29+
self.datav = np.asarray(self.data.values[:, 2:8].astype("float64"))
3030
self.x = self.datav[:, 0:5]
3131
self.y = self.datav[:, 5]
3232
self.n = self.data.shape[0]

0 commit comments

Comments
 (0)