mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-01 17:37:43 +00:00
fix: update DS env setup with competition volume and timeout (#878)
* refactor: update DS env setup with competition volume and timeout * refactor: update volume mapping and timeout based on run type
This commit is contained in:
@@ -43,8 +43,17 @@ class ModelDumpEvaluator(CoSTEEREvaluator):
|
||||
code=err_msg,
|
||||
final_decision=False,
|
||||
)
|
||||
env = get_ds_env()
|
||||
env.conf.extra_volumes = {self.scen.debug_path: T("scenarios.data_science.share:scen.input_path").r()}
|
||||
data_source_path = (
|
||||
f"{DS_RD_SETTING.local_data_path}/{self.scen.competition}"
|
||||
if self.data_type == "full"
|
||||
else self.scen.debug_path
|
||||
)
|
||||
env = get_ds_env(
|
||||
extra_volumes={data_source_path: T("scenarios.data_science.share:scen.input_path").r()},
|
||||
running_timeout_period=(
|
||||
DS_RD_SETTING.full_timeout if self.data_type == "full" else DS_RD_SETTING.debug_timeout
|
||||
),
|
||||
)
|
||||
|
||||
# 2) check the result and stdout after reruning the model.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user