stable-baselines3/stable_baselines3/common
lutogniew e76316341d
Fix env checker single-step-env edge case (#1524)
* Fix env checker single-step-env edge case

Before this change, env checker failed to `reset()` the tested
environment before calling `step()` when checking for `Inf` / `NaN`.
This could cause environments which happened to have only one `step()`
available before the episode was terminated to fail.

This is now fixed.

* Code review fixes #1

As suggested by Antonin Raffin <antonin.raffin@ensta.org>.
2023-05-25 17:12:32 +02:00
..
envs Type annotation bundle (logger, vec env, custom envs) (#1479) 2023-05-04 20:27:15 +02:00
sb2_compat Type annotation bundle (logger, vec env, custom envs) (#1479) 2023-05-04 20:27:15 +02:00
vec_env vec_envs fix seed() causing a reset (#1486) 2023-05-20 10:30:54 +02:00
__init__.py Update docs (custom policy, type hints) (#167) 2020-09-29 20:41:14 +03:00
atari_wrappers.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
base_class.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
buffers.py Type annotation bundle (logger, vec env, custom envs) (#1479) 2023-05-04 20:27:15 +02:00
callbacks.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
distributions.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
env_checker.py Fix env checker single-step-env edge case (#1524) 2023-05-25 17:12:32 +02:00
env_util.py vec_envs fix seed() causing a reset (#1486) 2023-05-20 10:30:54 +02:00
evaluation.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
logger.py Fix Colab logger error (#1484) 2023-05-05 14:26:39 +02:00
monitor.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
noise.py vec_envs fix seed() causing a reset (#1486) 2023-05-20 10:30:54 +02:00
off_policy_algorithm.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
on_policy_algorithm.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
policies.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
preprocessing.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
results_plotter.py Fix Atari Roms download, enable RUF linting (#1379) 2023-03-12 18:47:52 +01:00
running_mean_std.py Fix test_vec_normalize.py, test_tensorboard.py and common/monitor.py type hint (#1194) 2023-01-13 18:28:22 +01:00
save_util.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
torch_layers.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
type_aliases.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
utils.py vec_envs fix seed() causing a reset (#1486) 2023-05-20 10:30:54 +02:00