Commit 72456eaa authored by stephen.wang's avatar stephen.wang

Merge remote-tracking branch 'origin/dev-dividend' into dev-dividend

parents 9b4a0c9b f5f3ec36
......@@ -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