fix: qlib and other scenario bugs (#636)

* fix qlib and other scenario bugs

* bug fix
This commit is contained in:
Xu Yang
2025-02-25 12:06:07 +08:00
committed by GitHub
parent 374dbdb553
commit c109fa8e99
5 changed files with 18 additions and 12 deletions
@@ -117,7 +117,7 @@ class FactorFBWorkspace(FBWorkspace):
- The cached information will include a tuple with the following: (execution_feedback, executed_factor_value_dataframe, Optional[Exception])
"""
super().execute()
self.before_execute()
if self.file_dict is None or "factor.py" not in self.file_dict:
if self.raise_exception:
raise CodeFormatError(self.FB_CODE_NOT_SET)
@@ -97,7 +97,7 @@ class ModelFBWorkspace(FBWorkspace):
input_value: float = 1.0,
param_init_value: float = 1.0,
):
super().execute()
self.before_execute()
try:
qtde = QTDockerEnv() if self.target_task.version == 1 else KGDockerEnv()
qtde.prepare()