Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nemo_run/run/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def from_title(
parent_dir = os.path.join(get_nemorun_home(), "experiments", title)
exp_dir = _get_latest_dir(parent_dir)

assert os.path.isdir(exp_dir), f"Experiment {id} not found."
assert os.path.isdir(exp_dir), f"Experiment {title} not found."

exp = cls._from_config(exp_dir)
return exp
Expand Down
2 changes: 1 addition & 1 deletion test/run/test_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def test_from_title_nonexistent(temp_dir):
mock_get_latest_dir.return_value = nonexistent_path

# The assertion should fail because the directory doesn't exist
with pytest.raises(AssertionError):
with pytest.raises(AssertionError, match=f"Experiment {title} not found"):
Experiment.from_title(title)


Expand Down