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

Add radius argument to NetworkGrid.get_neighbors() #1973

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

EwoutH
Copy link
Member

@EwoutH EwoutH commented Jan 18, 2024

For some reason get_neighborhood() did have the radius input argument, but get_neighbors() did not have it in the NetworkGrid. This commit resolves that inconsistency and allows get_neighbors() to take a radius as input and return the agents in that radius. Tests are included.

For some reason get_neighborhood() did have the radius argument, but get_neighbors() did not have it in the NetworkGrid. This commit resolves that inconsistency and allows get_neighbors() to take a radius as input and return the agents in that radius. Tests are included.
@EwoutH EwoutH added the enhancement Release notes label label Jan 18, 2024
@rht
Copy link
Contributor

rht commented Jan 20, 2024

Can't be merged before 2.2.2.

@EwoutH
Copy link
Member Author

EwoutH commented Jan 20, 2024

Thanks, agree shouldn't be included (doesn't break anything though).

We can merge it to the main branch though, it's the development branch. For 2.2.2 we can create a maintenance branch from 2.2.1 and cherry pick what we want in there.

@rht
Copy link
Contributor

rht commented Jan 20, 2024

Needs to notify @jackiekazil that we are doing a branch with cherry picks for a patch release, because #1951 happened.

@jackiekazil
Copy link
Member

RE: #1951 - I am okay if we change the versioning process -- for the manual build - the version was being pulled from the init ... we can change the process. I just want to insure that both a manual build and an automated build would work. If the auto build failed for some reason, the manual would be the back up now.

@EwoutH EwoutH merged commit 72b0a9d into projectmesa:main Jan 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Release notes label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants