Jjschwartz / NetworkAttackSimulator

An environment for testing AI pentesting agents against a simulated network.

Home Page:https://networkattacksimulator.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`render_action()` results in an error

simonsays1980 opened this issue · comments

Describe the bug
Calling render_action() results in the following error:

TypeError: 'FlatActionSpace' object is not subscriptable

To Reproduce
Run the following code:

import gym
env = gym.make("nasim:Tiny-v0")
env.render_action(env.action_space.sample())

Expected behavior
That I get a human-readable form of the integer action passed in as an argument.

Desktop (please complete the following information):

  • OS: Linux Fedora 35