diff --git a/Project.toml b/Project.toml index 865849f0..975ef333 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "COBREXA" uuid = "babc4406-5200-4a30-9033-bf5ae714c842" authors = ["The developers of COBREXA.jl"] -version = "2.6.0" +version = "2.6.1" [deps] AbstractFBCModels = "5a4f3dfa-1789-40f8-8221-69268c29937c" diff --git a/src/frontend/enzymes.jl b/src/frontend/enzymes.jl index 1025f13b..e77cefd3 100644 --- a/src/frontend/enzymes.jl +++ b/src/frontend/enzymes.jl @@ -101,8 +101,9 @@ $(TYPEDSIGNATURES) Internal helper for implementation of [`expand_enzyme_capacity`](@ref) over iterable `Dict`-like objects. """ -expand_enzyme_capacity_iterable(x) = - return [id => (grp, expand_enzyme_capacity_bound(cap)) for (id, (grp, cap)) in x] +expand_enzyme_capacity_iterable(x) = return [ + Symbol(id) => (grp, expand_enzyme_capacity_bound(cap)) for (id, (grp, cap)) in x +] """ $(TYPEDSIGNATURES) diff --git a/test/misc.jl b/test/misc.jl index 62217c4f..eda0ecd2 100644 --- a/test/misc.jl +++ b/test/misc.jl @@ -143,4 +143,7 @@ end @test i == :test @test ks == [:ident] @test v == (0, 123) + + x = expand_enzyme_capacity([("test", [], 0)], []) + @test first(x[1]) == :test end