Compare commits

..

No commits in common. "e5ac7e0b05ebf0ef84e47f1cc601434552ed376c" and "df8b2d836e943cefcba8674fe83c3d118cf56153" have entirely different histories.

3 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,3 @@
name: Example
params:
task:
env_args:
observable:
- type: State
@ -46,4 +43,3 @@ params:
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.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)
- 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...)
##### 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 d and 'name' in d and d['name'] not in ['SLURM']])
f) if 'name' in d and d['name'] not in ['SLURM']])
for i, doc in enumerate(docs):
name = doc['name']
print('['+str(i)+'] '+name)