Skip to content

Auto jump vars discovery and improve concrete typing#1372

Merged
isaacsas merged 2 commits intoSciML:version_16_newfrom
isaacsas:auto_jump_vars_discovery
Feb 4, 2026
Merged

Auto jump vars discovery and improve concrete typing#1372
isaacsas merged 2 commits intoSciML:version_16_newfrom
isaacsas:auto_jump_vars_discovery

Conversation

@isaacsas
Copy link
Copy Markdown
Member

@isaacsas isaacsas commented Feb 4, 2026

No description provided.

isaacsas and others added 2 commits February 3, 2026 16:31
Extend make_ReactionSystem_internal to discover variables from jumps,
analogous to how events are handled. This allows users to pass jumps
to the two-argument constructor without explicitly specifying all
unknowns and parameters.

- Add find_jump_vars! function using MT.collect_vars! for jump types
- Add jumps kwarg to make_ReactionSystem_internal
- Add tests for ConstantRateJump, VariableRateJump, and MassActionJump

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Type Dict keys in get_netstoich as eltype(subs) instead of Any
- Type empty Dicts as Dict{SymbolicT, SymbolicT}() for substitution maps
- Type reactant_stoch vector with SymbolicT keys
- Delete get_speciestype function, use SymbolicT directly
- Use CatalystEqType[] instead of Any[] for equation reduction init
- Type systems field as Vector{ReactionSystem}
- Type parent field as Union{Nothing, ReactionSystem}
- Remove unused connection_type field from ReactionSystem struct
- Update tests for new Reaction type parameter (SymbolicT instead of Any)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@isaacsas isaacsas mentioned this pull request Feb 4, 2026
43 tasks
@isaacsas isaacsas merged commit 4744a02 into SciML:version_16_new Feb 4, 2026
16 of 19 checks passed
@isaacsas isaacsas deleted the auto_jump_vars_discovery branch February 4, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant