example workflow code for model implementation (#17)

* upload example code for model implementation

* Refactor Model Implement

* add export

---------

Co-authored-by: Young <afe.young@gmail.com>
This commit is contained in:
Xinjie Shen
2024-06-21 16:41:34 +08:00
committed by GitHub
parent a126c84c92
commit f20dc4482b
21 changed files with 2712 additions and 10 deletions
@@ -30,6 +30,8 @@ from filelock import FileLock
class FactorImplementTask(BaseTask):
# TODO: generalized the attributes into the BaseTask
# - factor_* -> *
def __init__(
self,
factor_name,
@@ -39,6 +41,7 @@ class FactorImplementTask(BaseTask):
variables: dict = {},
resource: str = None,
) -> None:
# TODO: remove the useless factor_formulation_description
self.factor_name = factor_name
self.factor_description = factor_description
self.factor_formulation = factor_formulation