Compare commits
2 Commits
df8b2d836e
...
e5ac7e0b05
Author | SHA1 | Date | |
---|---|---|---|
e5ac7e0b05 | |||
fcd502d05b |
@ -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
|
||||
---
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user