Skip to content

Commit

Permalink
[RLlib] Fix using yaml files with empty stopping conditions. (ray-pro…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturNiederfahrenhorst committed Jan 3, 2023
1 parent e0e75a8 commit 4f52ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rllib/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def load_experiments_from_file(
if file_type == SupportedFileType.yaml:
with open(config_file) as f:
experiments = yaml.safe_load(f)
if stop is not None:
if stop is not None and stop != "{}":
raise ValueError("`stop` criteria only supported for python files.")
# Python file case (ensured by file type enum)
else:
Expand Down

0 comments on commit 4f52ab3

Please sign in to comment.