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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user