Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split get_env_object function #16

Closed
matrx-software opened this issue Feb 27, 2020 · 4 comments
Closed

Split get_env_object function #16

matrx-software opened this issue Feb 27, 2020 · 4 comments
Labels
beginner Work suited when just starting core Work related to the core functionality feature Work for a new feature

Comments

@matrx-software
Copy link
Collaborator

Issue by matrxs
Tuesday Jan 21, 2020 at 13:20 GMT
Originally opened as matrxs/MATRXS#15


get_env_object now accepts ID, type and name.
Split this function into:

  • get_env_object(agent_id). Which returns 1 object (with that ID) or False
  • filter_env_objects(obj_type=False, obj_name=False). Which returns a list of objects which meet the specified criteria. No criteria returns all env objects.
@matrx-software matrx-software added beginner Work suited when just starting core Work related to the core functionality feature Work for a new feature labels Feb 27, 2020
@sahil1610
Copy link

@matrx-software I would like to contribute

@jwaa
Copy link
Member

jwaa commented Mar 29, 2020

Sure @sahil1610! I can set you up tomorrow. Do read our contribution guide beforehand :)

If you need help, just ask.

@matrx-software
Copy link
Collaborator Author

@sahil1610, I gave you access. Welcome!

Please follow the aforementioned contribution guide if you wish to contribute. Start with a feature branch.

@thaije
Copy link
Collaborator

thaije commented Nov 25, 2021

We now have a handy state object with built-in helper methods for filtering and finding objects and agents. It is available in agents, actions, loggers, object (update function). See among others #202.

@thaije thaije closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner Work suited when just starting core Work related to the core functionality feature Work for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants