1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-19 10:24:35 +08:00

fix comments & update resam ts_last method

This commit is contained in:
bxdd
2021-07-01 16:31:58 +00:00
parent 8b85b9eee7
commit 8dd5788bac
5 changed files with 45 additions and 25 deletions

View File

@@ -91,7 +91,7 @@ class Report:
if freq is None:
raise ValueError("benchmark freq can't be None!")
_codes = benchmark if isinstance(benchmark, list) else [benchmark]
_codes = benchmark if isinstance(benchmark, (list, dict)) else [benchmark]
fields = ["$close/Ref($close,1)-1"]
_temp_result, _ = get_higher_eq_freq_feature(_codes, fields, start_time, end_time, freq=freq)
if len(_temp_result) == 0: