Skip to content

Breaking: Switch computed_properties[_with_inputs] to take a type instead of subsystem argument#45

Merged
MasonProtter merged 1 commit intomasterfrom
mp/static_compu_props
Oct 28, 2025
Merged

Breaking: Switch computed_properties[_with_inputs] to take a type instead of subsystem argument#45
MasonProtter merged 1 commit intomasterfrom
mp/static_compu_props

Conversation

@MasonProtter
Copy link
Collaborator

Now instead of adding methods like

function GraphDynamics.computed_properties_with_inputs(::Subsystem{Particle})
    a(sys, input) = input.F / sys.m 
    (; a)
end

you do

function GraphDynamics.computed_properties_with_inputs(::Type{Particle})
    a(sys, input) = input.F / sys.m 
    (; a)
end

@MasonProtter MasonProtter merged commit 1ad7d19 into master Oct 28, 2025
7 checks passed
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