Commit 52ddf5d7 authored by Dr.李's avatar Dr.李

fixed the bug for is_tradable

parent 161ad80c
......@@ -200,7 +200,7 @@ def factor_analysis(factors: pd.DataFrame,
ubound = 0.01 + benchmark
if is_tradable is not None:
ubound[~is_tradable] = 0.
ubound[~is_tradable] = np.minimum(lbound, ubound)[~is_tradable]
if constraints:
risk_lbound, risk_ubound = constraints.risk_targets()
......
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