Skip to content

Commit 2307237

Browse files
authored
fix: remove unused imports in data science scenario module (#1136)
1 parent e44bc83 commit 2307237

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

rdagent/scenarios/data_science/scen/__init__.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,7 @@ def real_debug_timeout(self):
128128
)
129129

130130
def recommend_debug_timeout(self):
131-
return (
132-
DS_RD_SETTING.debug_recommend_timeout
133-
* min(
134-
DS_RD_SETTING.coder_longer_timeout_multiplier_upper,
135-
self.timeout_increase_count * DS_RD_SETTING.timeout_increase_stage + 1,
136-
)
137-
if self.longer_time_limit_required and DS_RD_SETTING.allow_longer_timeout
138-
else DS_RD_SETTING.debug_timeout
139-
)
131+
return DS_RD_SETTING.debug_recommend_timeout
140132

141133
def real_full_timeout(self):
142134
return (
@@ -150,15 +142,7 @@ def real_full_timeout(self):
150142
)
151143

152144
def recommend_full_timeout(self):
153-
return (
154-
DS_RD_SETTING.full_recommend_timeout
155-
* min(
156-
DS_RD_SETTING.runner_longer_timeout_multiplier_upper,
157-
self.timeout_increase_count * DS_RD_SETTING.timeout_increase_stage + 1,
158-
)
159-
if self.longer_time_limit_required and DS_RD_SETTING.allow_longer_timeout
160-
else DS_RD_SETTING.full_recommend_timeout
161-
)
145+
return DS_RD_SETTING.full_recommend_timeout
162146

163147
def increase_timeout(self):
164148
"""Increase the timeout multiplier for the scenario."""

0 commit comments

Comments
 (0)