Skip to content

Commit 8b99696

Browse files
committed
Refactors initialization of useful_links in DoubleAgentDriver to ensure it is set correctly based on its current state.
1 parent ca2a311 commit 8b99696

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

AFL/double_agent/AgentDriver.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,13 @@ def __init__(
245245
self.input: Optional[xr.Dataset] = None
246246
self.results: Dict[str, xr.Dataset] = dict()
247247

248-
self.useful_links = {
249-
"Pipeline Builder": "/pipeline_builder"
250-
}
248+
if self.useful_links is None:
249+
self.useful_links = {
250+
"Pipeline Builder": "/pipeline_builder"
251+
}
252+
else:
253+
self.useful_links["Pipeline Builder"] = "/pipeline_builder"
254+
251255

252256

253257
def status(self):

0 commit comments

Comments
 (0)