#2523 - Minor typos/corrections to make things run locally. Added one logging line to record Blue agent reward per step in environment.py

This commit is contained in:
Charlie Crane
2024-04-30 14:16:29 +01:00
parent 8a97d197b9
commit b8c46a92e9
3 changed files with 6 additions and 3 deletions

View File

@@ -404,7 +404,7 @@
" # don't flatten observations so that we can see what is going on\n",
" cfg['agents'][3]['agent_settings']['flatten_obs'] = False\n",
"\n",
"env = PrimaiteGymEnv(game_config = cfg)\n",
"env = PrimaiteGymEnv(env_config = cfg)\n",
"obs, info = env.reset()\n",
"print('env created successfully')\n",
"pprint(obs)"
@@ -476,7 +476,9 @@
"outputs": [],
"source": [
"obs, reward, terminated, truncated, info = env.step(9) # scan database file\n",
"print(info)\n",
"obs, reward, terminated, truncated, info = env.step(1) # scan webapp service\n",
"print(info)\n",
"pprint(obs['NODES'])"
]
},
@@ -693,7 +695,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.10.11"
}
},
"nbformat": 4,