Skip to content

Commit

Permalink
gracefully catch nans
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlabayle committed Jul 26, 2024
1 parent 7b2ffed commit f97cb6d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/plots.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
TMLE.pvalue(x) = pvalue(significance_test(x))
function TMLE.pvalue(x)
return try
TMLE.pvalue(significance_test(x))
catch
NaN
end
end

TMLE.pvalue(x::TargetedEstimation.FailedEstimate) = missing

log10_uniform_quantiles(n) = -log10.(collect(LinRange(0., 1., n + 1))[2:end])
Expand Down

0 comments on commit f97cb6d

Please sign in to comment.