More info in docstring

This commit is contained in:
Marek Wolan
2023-06-01 11:02:10 +01:00
parent 37d606eda6
commit 3b0d05e9c9

View File

@@ -763,6 +763,7 @@ class Primaite(Env):
def _update_env_obs_box(self): def _update_env_obs_box(self):
"""Update the environment's observation state based on the current status of nodes and links. """Update the environment's observation state based on the current status of nodes and links.
The structure of the observation space is described in :func:`~_init_box_observations`
This function can only be called if the observation space setting is set to BOX. This function can only be called if the observation space setting is set to BOX.
:raises AssertionError: If this function is called when the environment has the incorrect ``observation_type`` :raises AssertionError: If this function is called when the environment has the incorrect ``observation_type``
@@ -813,6 +814,7 @@ class Primaite(Env):
def _update_env_obs_multidiscrete(self): def _update_env_obs_multidiscrete(self):
"""Update the environment's observation state based on the current status of nodes and links. """Update the environment's observation state based on the current status of nodes and links.
The structure of the observation space is described in :func:`~_init_multidiscrete_observations`
This function can only be called if the observation space setting is set to MULTIDISCRETE. This function can only be called if the observation space setting is set to MULTIDISCRETE.
:raises AssertionError: If this function is called when the environment has the incorrect ``observation_type`` :raises AssertionError: If this function is called when the environment has the incorrect ``observation_type``