mirror of
https://github.com/robertmartin8/PyPortfolioOpt.git
synced 2022-11-27 18:02:41 +03:00
fixed np.float warning
This commit is contained in:
@@ -196,7 +196,7 @@ class BaseConvexOptimizer(BaseOptimizer):
|
||||
if len(test_bounds) == self.n_assets and not isinstance(
|
||||
test_bounds[0], (float, int)
|
||||
):
|
||||
bounds = np.array(test_bounds, dtype=np.float)
|
||||
bounds = np.array(test_bounds, dtype=float)
|
||||
self._lower_bounds = np.nan_to_num(bounds[:, 0], nan=-np.inf)
|
||||
self._upper_bounds = np.nan_to_num(bounds[:, 1], nan=np.inf)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user