mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-06 20:41:09 +08:00
fix_pylint_for_CI (#1119)
* fix_pylint_for_CI * reformat_with_black * fix_pylint_C3001 * fix_flake8_error
This commit is contained in:
@@ -255,7 +255,10 @@ class Alpha158(DataHandlerLP):
|
||||
exclude = config["rolling"].get("exclude", [])
|
||||
# `exclude` in dataset config unnecessary filed
|
||||
# `include` in dataset config necessary field
|
||||
use = lambda x: x not in exclude and (include is None or x in include)
|
||||
|
||||
def use(x):
|
||||
return x not in exclude and (include is None or x in include)
|
||||
|
||||
if use("ROC"):
|
||||
fields += ["Ref($close, %d)/$close" % d for d in windows]
|
||||
names += ["ROC%d" % d for d in windows]
|
||||
|
||||
Reference in New Issue
Block a user