Skip to content

Commit

Permalink
Merge pull request #8 from josePereiro/master
Browse files Browse the repository at this point in the history
Fix Annotation parsing issue
  • Loading branch information
exaexa authored Mar 2, 2024
2 parents 4b932b4 + d7e5891 commit d0cfd5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/grr_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const grr_grammar = begin
p(m[i]) || break
last = i
end
last
return last
end

# eat one of keywords
Expand Down
2 changes: 1 addition & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]

Expand Down
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function parse_annotations_or_notes(x)
for (k, vs) in x
if isa(vs, String)
a_or_n[k] = String[vs]
else
a_or_n[k] = String[v for v in vs]
elseif isa(vs, AbstractDict) || isa(vs, AbstractVector)
a_or_n[k] = String[string(p) for p in collect(vs)]
end
end
return a_or_n
Expand Down

0 comments on commit d0cfd5d

Please sign in to comment.