Commit f5f3ec36 authored by wenwen.tang's avatar wenwen.tang 😕
parent 0f7bec38
......@@ -216,6 +216,8 @@ class FundDividendSortinoAssetOptimize(SortinoAssetOptimize):
def get_groups(self, day=None):
funds = pd.DataFrame(self.get_filtered_funds(day))
if len(funds) < get_config('portfolios.solver.asset-count')[0]:
raise ValueError(f"基金优选个数小于{get_config('portfolios.solver.asset-count')[0]},请调整参数")
result = []
if self.asset_include:
include = list(self.asset_include.keys())[0]
......
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