Skip to content

fix: use title in Experiment.from_title not found message#564

Open
andrewwhitecdw wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/undefined-experiment-id
Open

fix: use title in Experiment.from_title not found message#564
andrewwhitecdw wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/undefined-experiment-id

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Bug\nExperiment.from_title referenced the built-in id() function in its assertion message, producing Experiment <built-in function id> not found. when the experiment directory was missing.\n\n## Fix\nUse the title parameter in the message instead.\n\n## Test\nUpdated test_from_title_nonexistent to assert that the error message contains the title.\n\n## Verification\nuv run pytest test/run/test_experiment.py::test_from_title_nonexistent -v passes.\nuv run --group lint ruff check ... and ruff format --check ... pass.

Experiment.from_title previously referenced the built-in id() function in its

assertion message, producing 'Experiment <built-in function id> not found.'.

Update the message to use the title parameter and tighten the existing test

to verify the message content.

Signed-off-by: Andrew White <andrewh@cdw.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant