Skip to content

Commit

Permalink
fixing logging in find_ioequations
Browse files Browse the repository at this point in the history
  • Loading branch information
pogudingleb committed Mar 10, 2024
1 parent 372a297 commit e1c8143
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/global_identifiability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ The function returns a tuple containing the following:
rational_interpolator = :VanDerHoevenLecerf,
) where {T}
@info "Computing IO-equations"
ioeq_time =
@elapsed io_equations = find_ioequations(ode; var_change_policy = var_change_policy)
ioeq_time = @elapsed io_equations =
_find_ioequations(ode; var_change_policy = var_change_policy)
@debug "Sizes: $(map(length, values(io_equations)))"
@info "Computed IO-equations in $ioeq_time seconds"
_runtime_logger[:ioeq_time] = ioeq_time
Expand Down
11 changes: 11 additions & 0 deletions src/io_equation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,17 @@ Output:
ode::ODE{P};
var_change_policy = :default,
loglevel = Logging.Info,
) where {P <: MPolyRingElem{<:FieldElem}}
restart_logging(loglevel = loglevel)
reset_timings()
with_logger(_si_logger[]) do
return _find_ioequations(ode, var_change_policy = var_change_policy)
end
end

@timeit _to function _find_ioequations(

Check warning on line 357 in src/io_equation.jl

View check run for this annotation

Codecov / codecov/patch

src/io_equation.jl#L357

Added line #L357 was not covered by tests
ode::ODE{P};
var_change_policy = :default,
) where {P <: MPolyRingElem{<:FieldElem}}
# Setting the var_change policy
if (var_change_policy == :yes) ||
Expand Down

0 comments on commit e1c8143

Please sign in to comment.