Skip to content

Commit 5166de0

Browse files
committed
Trying to pass the test on GitHub...
1 parent 9e15e1c commit 5166de0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/riskparityportfolio/tests/test_modern_rpp.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ def test_constraints():
102102
w = my_portfolio.weights
103103
np.testing.assert_almost_equal(np.sum(w), 1)
104104
np.testing.assert_equal(all(w >= 0), True)
105-
np.testing.assert_array_less(w, 0.03 + 1e-3)
105+
print(max(w))
106+
np.testing.assert_array_less(w, (0.03 + 1e-3)*np.ones(N))
106107

107108
# Bounds for sum: 0.5 <= sum(w) <= 1 (
108109
my_portfolio = rpp.RiskParityPortfolio(Sigma)

0 commit comments

Comments
 (0)