From 92aba349f92d09b4f29fc95d8b647e657073a36e Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Sun, 30 Aug 2026 23:00:25 -0400 Subject: [PATCH] Format for Runic v1.10 Co-Authored-By: Chris Rackauckas Co-Authored-By: OpenAI Codex Agent-Harness: Codex CLI 0.151.0 Agent-Model: unknown Agent-Session: local session ID 01a04fa1-cfe0-7260-b416-72fe8a15d17d --- ext/ModelingToolkitSIExt.jl | 8 ++++---- src/io_equation.jl | 12 ++++++------ test/bodies/diff_sequence_solution.jl | 6 +++--- test/bodies/paradigm_shift.jl | 12 ++++++------ test/bodies/submodels.jl | 8 ++++---- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/ext/ModelingToolkitSIExt.jl b/ext/ModelingToolkitSIExt.jl index ee382efe0..c1b7ee6e1 100644 --- a/ext/ModelingToolkitSIExt.jl +++ b/ext/ModelingToolkitSIExt.jl @@ -332,13 +332,13 @@ function __mtk_to_si( params_from_measured_quantities = union( [ filter( - s -> - !Symbolics.iscall(s) && + s -> + !Symbolics.iscall(s) && !(string(s) in string.(state_vars)) && !(string(s) * "(t)" in string.(state_vars)) && (string(s) != string(t)), - get_variables(y[2]), - ) for y in measured_quantities + get_variables(y[2]), + ) for y in measured_quantities ]..., ) params = union(params, params_from_measured_quantities) diff --git a/src/io_equation.jl b/src/io_equation.jl index caa612a7e..5e5cc85c8 100644 --- a/src/io_equation.jl +++ b/src/io_equation.jl @@ -170,12 +170,12 @@ Output: # choosing the output to prolong outputs_with_scores = [ ( - min(d[2]...) * length(y_equations[d[1]]), - min(d[2]...), - -count(x -> x == min(d[2]...), d[2]) + length(y_equations[d[1]]) // 30, - length(y_equations[d[1]]), - d[1], - ) for d in var_degs + min(d[2]...) * length(y_equations[d[1]]), + min(d[2]...), + -count(x -> x == min(d[2]...), d[2]) + length(y_equations[d[1]]) // 30, + length(y_equations[d[1]]), + d[1], + ) for d in var_degs ] @debug "Scores: $outputs_with_scores" y_prolong = sort(outputs_with_scores)[1][end] diff --git a/test/bodies/diff_sequence_solution.jl b/test/bodies/diff_sequence_solution.jl index 5e1dc1ceb..f9ef48036 100644 --- a/test/bodies/diff_sequence_solution.jl +++ b/test/bodies/diff_sequence_solution.jl @@ -81,9 +81,9 @@ if GROUP == "All" || GROUP == "Core" end return Dict( ( - parent_ring_change(k[1], parent(dds)), - parent_ring_change(k[2], parent(dds)), - ) => res for (k, res) in part_diffs + parent_ring_change(k[1], parent(dds)), + parent_ring_change(k[2], parent(dds)), + ) => res for (k, res) in part_diffs ) end diff --git a/test/bodies/paradigm_shift.jl b/test/bodies/paradigm_shift.jl index eb293629d..a8a686556 100644 --- a/test/bodies/paradigm_shift.jl +++ b/test/bodies/paradigm_shift.jl @@ -39,15 +39,15 @@ function test_reparametrization(old_ode, new_ode, var_mapping, implicit_relation new_inputs = new_ode.u_vars new_param_spec = Dict( new_param => StructuralIdentifiability.eval_at_dict( - var_mapping[new_param], - old_param_spec, - ) for new_param in new_params + var_mapping[new_param], + old_param_spec, + ) for new_param in new_params ) new_var_ic = Dict( new_var => StructuralIdentifiability.eval_at_dict( - var_mapping[new_var], - merge(old_param_spec, old_var_ic), - ) for new_var in new_vars + var_mapping[new_var], + merge(old_param_spec, old_var_ic), + ) for new_var in new_vars ) new_input_ts = Dict{eltype(new_vars), Vector{Nemo.QQFieldElem}}( new_input => old_input_ts[numerator(var_mapping[new_input])] for diff --git a/test/bodies/submodels.jl b/test/bodies/submodels.jl index d42975dac..2da75bcc0 100644 --- a/test/bodies/submodels.jl +++ b/test/bodies/submodels.jl @@ -145,10 +145,10 @@ include(joinpath(@__DIR__, "..", "shared", "test_setup.jl")) submodels = Set( [ ( - collect(map(var_to_str, ode.x_vars)), - collect(map(var_to_str, ode.y_vars)), - collect(map(var_to_str, ode.u_vars)), - ) for ode in submodels + collect(map(var_to_str, ode.x_vars)), + collect(map(var_to_str, ode.y_vars)), + collect(map(var_to_str, ode.u_vars)), + ) for ode in submodels ] ) @test submodels == c[:submodels]