Skip to content
Snippets Groups Projects
Verified Commit f21796a2 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Return missing if best reco is not found

parent b4bf4392
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ function besttrack(trks::Vector{Trk}, rec_type::Integer, rsr::RecStageRange)
end
function _besttrack(trks::Vector{Trk})
length(trks) == 0 && return nothing
length(trks) == 0 && return missing
sort(trks; by=c -> (length(c.rec_stages), c.lik)) |> last
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment