Skip to content

Fix issue with different decision intervals for different brains #3181

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

Merged
merged 3 commits into from
Jan 8, 2020

Conversation

ervteng
Copy link
Contributor

@ervteng ervteng commented Jan 8, 2020

If there is more than one brain each with a different decision interval, only one of the brains would be updated. This was because we were checking if we had any actions present for each EnvironmentStep - and in the error case there would be no actions but still a braininfo present.

We now process all the steps, but don't withdraw previous step unless there is an action.

)
for name_behavior_id in step_info.name_behavior_ids:
if name_behavior_id not in self.managers:
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we warn and/or throw an exception here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a warning

Copy link
Contributor

@chriselion chriselion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think it's good, let's just get another pair of eyes on it.

@ervteng
Copy link
Contributor Author

ervteng commented Jan 8, 2020

Think it's good, let's just get another pair of eyes on it.

Cool, let's wait for Andrew to take a look before merging

Copy link
Contributor

@andrewcoh andrewcoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me too

@ervteng ervteng merged commit f9d1faf into release-0.13.0 Jan 8, 2020
@delete-merged-branch delete-merged-branch bot deleted the release-fixdecisioninterval branch January 8, 2020 21:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants