Compare commits

...

2 Commits

3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,7 @@
env_args:
name: Example
params:
task:
env_args:
observable:
- type: State
coordsAgent: True
@ -43,3 +46,4 @@
aux_reward_max: 1
aux_penalty_max: 0.1
void_damage: 5
---

View File

@ -21,7 +21,7 @@ Contains the ColumbusEnv.
There exist two ways to implement new envs:
- Subclassing ColumbusEnv and expanding _init_ and overriding _setup_.
- Using the ColumbusConfigDefined with a desired configuration. This makes configuring ColumbusEnvs via ClusterWorks2-configs possible. (See ColumbusConfigDefinedExample.md for an example of how the parameters are supposed to look like (uses yaml format), I don't have time to write a better documentation right now...)
- Using the ColumbusConfigDefined with a desired configuration. This makes configuring ColumbusEnvs via ClusterWorks2-configs possible. (See ColumbusConfigDefinedExample.yaml for an example of how the parameters are supposed to look like (uses yaml format), I don't have time to write a better documentation right now...) (To test this run 'python humanPlayer.py', select 5, give path to ColumbusConfigDefinedExample.yaml, select 0)
##### Some caveats / infos

View File

@ -28,7 +28,7 @@ def loadConfigDefinedEnv(EnvClass):
p = input('[Path to config> ')
with open(p, 'r') as f:
docs = list([d for d in yaml.safe_load_all(
f) if 'name' in d and d['name'] not in ['SLURM']])
f) if d and 'name' in d and d['name'] not in ['SLURM']])
for i, doc in enumerate(docs):
name = doc['name']
print('['+str(i)+'] '+name)