Add tagging system for WorkPrecision and filtering helpers#178
Open
ChrisRackauckas-Claude wants to merge 1 commit intoSciML:masterfrom
Open
Add tagging system for WorkPrecision and filtering helpers#178ChrisRackauckas-Claude wants to merge 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude wants to merge 1 commit intoSciML:masterfrom
Conversation
Add a `tags` field to `WorkPrecision` allowing algorithms to be categorized with symbolic tags (e.g., `:rosenbrock`, `:stiff`, `:reference`). Tags are specified via the `:tags` key in setups dicts and propagated through all WorkPrecisionSet constructors (ODE, BVP, RODE, Ensemble, Nonlinear). New exported functions: - `filter_by_tags(wp_set, tags...)` - filter by ALL tags (AND logic) - `exclude_by_tags(wp_set, tags...)` - exclude entries with ANY tag (OR logic) - `get_tags(wp_set)` - get tags for each entry - `unique_tags(wp_set)` - all unique tags in the set - `merge_wp_sets(sets...)` - combine multiple WorkPrecisionSets Plot recipe extended with `tags`, `include_tags`, and `exclude_tags` kwargs for tag-based filtering directly in plot calls. Fully backward compatible - tags default to empty, all existing APIs unchanged. Closes SciML#177 (Phase 1) Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tags::Vector{Symbol}field toWorkPrecisionfor categorizing algorithms (e.g.,:rosenbrock,:stiff,:imex,:reference):tagskey in setups dicts, propagated through allWorkPrecisionSetconstructors (ODE, BVP, RODE, Ensemble, Nonlinear)filter_by_tags,exclude_by_tags,get_tags,unique_tags,merge_wp_setstags,include_tags,exclude_tagskwargs for direct tag-based filtering in plot callsUsage
Test plan
Part of #177 (Phase 1: Core tagging infrastructure)
🤖 Generated with Claude Code