-
Notifications
You must be signed in to change notification settings - Fork 47
feat(mettagrid): add ObjectTypeFilter for filtering by object type #4955
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
base: 01-16-feat_mettagrid_add_events_system_core_infrastructure_add_eventconfig_class_for_timestep-based_events_that_apply_mutations_to_filtered_objects._events_can_target_any_gridobject_and_include_-_timesteps_list_of_timesteps_when_event
Are you sure you want to change the base?
feat(mettagrid): add ObjectTypeFilter for filtering by object type #4955
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 41ed8caf3f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
9386e8d to
c025c5f
Compare
78c9396 to
adf7819
Compare
c025c5f to
76dc6a7
Compare
adf7819 to
4809cc6
Compare
76dc6a7 to
f2eb41e
Compare
f2eb41e to
af6dca4
Compare
4809cc6 to
166d42d
Compare
166d42d to
7643db3
Compare
1c95e70 to
2fdbe93
Compare
7643db3 to
7d6268b
Compare
7d6268b to
a726bae
Compare
2fdbe93 to
b0f9602
Compare
a726bae to
f9a8d61
Compare
481ff9d to
93ddb90
Compare
4fca1f2 to
17b2c02
Compare
Add ObjectTypeFilter that checks if target has a specific tag. Used by events to select which objects to apply mutations to. Python: - ObjectTypeFilterConfig with filter_type="object_type" and tag field - HasTag() helper function - Added to AnyFilter union C++: - ObjectTypeFilterConfig struct in handler_config.hpp - ObjectTypeFilter class in filter.hpp - Added to FilterConfig variant Tests: - test_object_type_filter.py with creation, helper, serialization tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
4fca1f2 to
c2870e9
Compare
93ddb90 to
8adb6df
Compare

Add ObjectTypeFilter that checks if target has a specific tag.
Used by events to select which objects to apply mutations to.
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com