Skip to content

Commit

Permalink
fix issue #69 workdir used incorrectly in agent construction
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Choat authored Nov 2, 2023
1 parent 764ce72 commit 3a170b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ngen_cal/src/ngen/cal/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ def __init__(self, model_conf, workdir: 'Path', log: bool=False, restart: bool=F
if self._job is None:
self._job = JobMeta(model_conf['type'], workdir, log=log)
resolved_binary = Path(model_conf['binary']).resolve()
relative_to = model_conf['workdir']
model_conf['workdir'] = self.job.workdir
self._model = Model(model=model_conf, binary=resolved_binary)
self._model.model.resolve_paths(relative_to)
self._model.model.resolve_paths(self.job.workdir)

self._params = parameters

@property
Expand Down

0 comments on commit 3a170b8

Please sign in to comment.