Skip to content

Commit

Permalink
fix(config.py): fix config assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaiejj committed Mar 24, 2023
1 parent ac6bfcd commit 09d4ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omnisafe/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ def __check_algo_configs(configs: Config, algo_type) -> None:
'vtrace',
'plain',
], "adv_estimation_method must be string, and it values must be ['gae','gae-rtg','vtrace','plain']"
assert (
configs.standardized_rew_adv and configs.standardized_cost_adv
assert isinstance(configs.standardized_rew_adv, bool) and isinstance(
configs.standardized_cost_adv, bool
), 'standardized_<>_adv must be bool'
assert (
isinstance(configs.penalty_coef, float)
Expand Down

0 comments on commit 09d4ebd

Please sign in to comment.