Skip to content

Commit

Permalink
Merge pull request #83 from iliailmer/fix-output-dict
Browse files Browse the repository at this point in the history
Fix: incorrect output format
  • Loading branch information
pogudingleb authored Feb 21, 2022
2 parents 20c009f + 9ad1494 commit 09d18d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/StructuralIdentifiability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ at least `p`.
"""
function assess_identifiability(ode::ODE{P}, p::Float64 = 0.99) where {P<:MPolyElem{fmpq}}
result_list = assess_identifiability(ode, ode.parameters, p)
return Dict(param => res for (param, res) in zip(ode.parameters, result_list))
result = assess_identifiability(ode, ode.parameters, p)
return result #Dict(param => res for (param, res) in zip(ode.parameters, result_list))
end

"""
Expand Down Expand Up @@ -134,7 +134,7 @@ function assess_identifiability(ode::ODE{P}, funcs_to_check::Array{<:RingElem,1}
end
end

return Dict(result)
return result
end

"""
Expand Down
2 changes: 1 addition & 1 deletion src/global_identifiability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function assess_global_identifiability(
) where P <: MPolyElem{fmpq}
result_list = assess_global_identifiability(ode, ode.parameters, p; var_change=var_change, gb_method=gb_method)

return Dict([param => val for (param, val) in zip(ode.parameters, result_list)])
return Dict(param => val for (param, val) in zip(ode.parameters, result_list))
end

#------------------------------------------------------------------------------
Expand Down

0 comments on commit 09d18d3

Please sign in to comment.