From d7e589143c9936f1701ab2c02148eefabdf6d4ba Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Sat, 2 Mar 2024 17:36:13 +0100 Subject: [PATCH] work around the coverage reporting changes in julia-1.10 --- src/grr_utils.jl | 2 +- src/interface.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grr_utils.jl b/src/grr_utils.jl index cfa6dec..eb9da5d 100644 --- a/src/grr_utils.jl +++ b/src/grr_utils.jl @@ -24,7 +24,7 @@ const grr_grammar = begin p(m[i]) || break last = i end - last + return last end # eat one of keywords diff --git a/src/interface.jl b/src/interface.jl index d9c128d..d25b33a 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -210,7 +210,7 @@ function Base.convert(::Type{JSONFBCModel}, mm::A.AbstractFBCModel) I, V = findnz(S[:, ri]) res["metabolites"] = Dict{String,Float64}([met_ids[ii] => vv for (ii, vv) in zip(I, V)]) - res + identity(res) end for (ri, rid) in enumerate(rxn_ids) ]