forked from projectmesa/mesa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
batch_run: Add empty iterable check (projectmesa#2523)
## Summary Fixed the handling of empty iterables in _make_model_kwargs. Now raises a ValueError when an empty list is passed. ## Bug / Issue Empty iterables weren't properly handled. ## Implementation Updated `_make_model_kwargs` to raise a ValueError for empty iterables. added a new function `test_batch_run_with_params_with_empty_content()` for testing.
- Loading branch information
1 parent
465a6cb
commit 07493a5
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters