diff --git a/qlib/utils/resam.py b/qlib/utils/resam.py index 8933b3a82..b121b6130 100644 --- a/qlib/utils/resam.py +++ b/qlib/utils/resam.py @@ -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", diff --git a/qlib/workflow/record_temp.py b/qlib/workflow/record_temp.py index 02a282035..f94a65510 100644 --- a/qlib/workflow/record_temp.py +++ b/qlib/workflow/record_temp.py @@ -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 []