Skip to content

Commit 53a395c

Browse files
committed
same for SequetialStudy
1 parent f824bc9 commit 53a395c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/agentlab/experiments/study.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,15 +462,22 @@ def find_incomplete(self, include_errors=True):
462462
for study in self.studies:
463463
study.find_incomplete(include_errors=include_errors)
464464

465-
def run(self, n_jobs=1, parallel_backend="ray", strict_reproducibility=False, n_relaunch=3):
465+
def run(
466+
self,
467+
n_jobs=1,
468+
parallel_backend="ray",
469+
strict_reproducibility=False,
470+
n_relaunch=3,
471+
exp_root=RESULTS_DIR,
472+
):
466473

467474
# This sequence of of making directories is important to make sure objects are materialized
468475
# properly before saving. Otherwise relaunch may not work properly.
469476
self.make_dir()
470477
for study in self.studies:
471478
study.make_dir(exp_root=self.dir)
472479

473-
self.save()
480+
self.save(exp_root=exp_root)
474481
self._run(n_jobs, parallel_backend, strict_reproducibility, n_relaunch)
475482
_, summary_df, _ = self.get_results()
476483
logger.info("\n" + str(summary_df))

0 commit comments

Comments
 (0)