1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-04 19:41:00 +08:00

add error type for record_temp

This commit is contained in:
D-X-Y
2021-03-16 09:01:10 +00:00
parent b0fd0d2395
commit 4cb74d77d1

View File

@@ -171,7 +171,7 @@ class SigAnaRecord(SignalRecord):
def generate(self, **kwargs):
try:
self.check(parent=True)
except:
except FileExistsError:
super().generate()
pred = self.load("pred.pkl")
@@ -240,7 +240,7 @@ class PortAnaRecord(SignalRecord):
# check previously stored prediction results
try:
self.check(parent=True) # "Make sure the parent process is completed and store the data properly."
except:
except FileExistsError:
super().generate()
# custom strategy and get backtest