We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e9a00a commit 1826b79Copy full SHA for 1826b79
qlib/workflow/task/gen.py
@@ -109,7 +109,7 @@ def handler_mod(task: dict, rolling_gen):
109
interval = rolling_gen.ta.cal_interval(
110
task["dataset"]["kwargs"]["handler"]["kwargs"]["end_time"],
111
task["dataset"]["kwargs"]["segments"][rolling_gen.test_key][1],
112
- )
+ ) if task["dataset"]["kwargs"]["segments"][rolling_gen.test_key][1] is not None else -1
113
# if end_time < the end of test_segments, then change end_time to allow load more data
114
if interval < 0:
115
task["dataset"]["kwargs"]["handler"]["kwargs"]["end_time"] = copy.deepcopy(
0 commit comments