Skip to content

Commit

Permalink
Fix gen_envs_display.py in docs (#177)
Browse files Browse the repository at this point in the history
* remove version from file

* pre-commit

---------

Co-authored-by: rodrigodelazcano <[email protected]>
  • Loading branch information
rodrigodelazcano and rodrigodelazcano authored Sep 16, 2023
1 parent c813b87 commit a1b8d5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_scripts/gen_envs_display.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import re

import gymnasium as gym
from tqdm import tqdm
Expand Down Expand Up @@ -31,6 +32,9 @@
env_type = split_entrypoint[-1]
env_name = split_entrypoint[-1]

# Remove file version from env_name
env_name = re.sub(r"(?:_v(?P<version>\d+))", "", env_name)

if env_type not in filtered_envs_by_type:
filtered_envs_by_type[env_type] = [env_name]
elif env_name not in filtered_envs_by_type[env_type]:
Expand Down

0 comments on commit a1b8d5e

Please sign in to comment.