Skip to content

Commit

Permalink
check length of diagR
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Jun 7, 2024
1 parent 0ea3bd5 commit 8b4ddc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DIVAnd_adaptedeps2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ function DIVAnd_adaptedeps2(yo, residual, diagR, ignoreobs)
@info("number of ignored observations: $(sum(ignoreobs)) "
* "(typically havigng a NaN value or outside of the domain) ")
@info("mean of diagR: $(mean(diagR))")
@info("minimum of diagR: $(minimum(diagR))")

if length(diagR) > 0
@info("minimum of diagR: $(minimum(diagR))")
end
end

return factor
Expand Down

0 comments on commit 8b4ddc1

Please sign in to comment.