Skip to content

Commit 6f6588a

Browse files
committed
Add warning for missing git repository in journal appending
1 parent 8f52efd commit 6f6588a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/agentlab/experiments/reproducibility_util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ def append_to_journal(
323323
_get_repo(agentlab) # if not based on git clone, this will raise an error
324324
journal_path = Path(agentlab.__file__).parent.parent.parent / "reproducibility_journal.csv"
325325
except InvalidGitRepositoryError:
326+
logging.warning("Could not find a git repository. Saving the journal to the results directory."
327+
"To add to the journal, git clone agentlab and use `pip install -e .`")
326328
journal_path = RESULTS_DIR / "reproducibility_journal.csv"
327329

328330
logging.info(f"Appending to journal {journal_path}")

0 commit comments

Comments
 (0)