mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 06:07:08 +00:00
Small improvements to environments pages (#110)
This commit is contained in:
@@ -119,7 +119,7 @@ title: {title_env_name}
|
|||||||
+ f" \n:width: 200px\n:name: {snake_env_name}\n```"
|
+ f" \n:width: 200px\n:name: {snake_env_name}\n```"
|
||||||
)
|
)
|
||||||
info = (
|
info = (
|
||||||
"This environment is part of the"
|
"This environment is part of the "
|
||||||
+ f"<a href='..'>{env_type_title} environments</a>."
|
+ f"<a href='..'>{env_type_title} environments</a>."
|
||||||
+ "Please read that page first for general information."
|
+ "Please read that page first for general information."
|
||||||
)
|
)
|
||||||
@@ -135,6 +135,8 @@ title: {title_env_name}
|
|||||||
if hasattr(high, "shape"):
|
if hasattr(high, "shape"):
|
||||||
if len(high.shape) == 3:
|
if len(high.shape) == 3:
|
||||||
high = high[0][0][0]
|
high = high[0][0][0]
|
||||||
|
if env_type == "mujoco":
|
||||||
|
high = high[0]
|
||||||
high = np.round(high, 2)
|
high = np.round(high, 2)
|
||||||
high = str(high).replace("\n", " ")
|
high = str(high).replace("\n", " ")
|
||||||
env_table += f"| Observation High | {high} |\n"
|
env_table += f"| Observation High | {high} |\n"
|
||||||
|
Reference in New Issue
Block a user