mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-17 01:14:35 +08:00
Update sample.py
This commit is contained in:
@@ -35,7 +35,7 @@ def parse_freq(freq: str) -> Tuple[int, str]:
|
|||||||
raise ValueError(
|
raise ValueError(
|
||||||
"freq format is not supported, the freq should be like (n)month/mon, (n)week/w, (n)day/d, (n)minute/min"
|
"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 = match_obj.group(2)
|
||||||
_freq_format_dict = {
|
_freq_format_dict = {
|
||||||
"month": "month",
|
"month": "month",
|
||||||
|
|||||||
Reference in New Issue
Block a user