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

Merge branch 'qlib_highfreq_backtest' of github.com:bxdd/qlib into bxdd-qlib_highfreq_backtest

This commit is contained in:
bxdd
2021-05-25 02:40:34 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ def parse_freq(freq: str) -> Tuple[int, str]:
raise ValueError(
"freq format is not supported, the freq should be like (n)month/mon, (n)week/w, (n)day/d, (n)minute/min"
)
_count = int(match_obj.group(1) if match_obj.group(1) else "1")
_count = int(match_obj.group(1)) if match_obj.group(1) is None else 1
_freq = match_obj.group(2)
_freq_format_dict = {
"month": "month",

View File

@@ -88,11 +88,11 @@ class RecordTemp:
def list(self):
"""
List the stored records.
List the supported artifacts.
Return
------
A list of all the stored records.
A list of all the supported artifacts.
"""
return []