mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-16 09:11: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):
|
def generate(self, **kwargs):
|
||||||
try:
|
try:
|
||||||
self.check(parent=True)
|
self.check(parent=True)
|
||||||
except:
|
except FileExistsError:
|
||||||
super().generate()
|
super().generate()
|
||||||
|
|
||||||
pred = self.load("pred.pkl")
|
pred = self.load("pred.pkl")
|
||||||
@@ -240,7 +240,7 @@ class PortAnaRecord(SignalRecord):
|
|||||||
# check previously stored prediction results
|
# check previously stored prediction results
|
||||||
try:
|
try:
|
||||||
self.check(parent=True) # "Make sure the parent process is completed and store the data properly."
|
self.check(parent=True) # "Make sure the parent process is completed and store the data properly."
|
||||||
except:
|
except FileExistsError:
|
||||||
super().generate()
|
super().generate()
|
||||||
|
|
||||||
# custom strategy and get backtest
|
# custom strategy and get backtest
|
||||||
|
|||||||
Reference in New Issue
Block a user