Skip to content

[Question] Passing arguments to environment #352

@zhalehmehrabi

Description

@zhalehmehrabi

Required prerequisites

Questions

Hello,
Thank you for your handy library.
I have an environment which I have to pass multiple arguments. in your tutorials LINK it was mentioned to use the following code:

custom_cfgs.update({'env_cfgs': {'num_agents': 2}})
agent = omnisafe.Agent('PPOLag', 'NewExample-v0', custom_cfgs=custom_cfgs)

However, when I used it I got this error:
KeyError: 'Invalid key: env_cfgs'

Please help with it.
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions