Skip to content

Commit

Permalink
warn
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed May 29, 2022
1 parent 3731690 commit f20cb42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BIGDT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ function makegetfailureprobabilities_mc(modelparams::AbstractMatrix, origloglike
end
end
if sumweights == 0.
error("All samples have zero weight. likelihoodparams: $likelihoodparams")
@error("All samples have zero weight. likelihoodparams: $likelihoodparams")
elseif sumweights == 1.
warn("All or nearly all the weight was in one sample. likelihoodparams: $likelihoodparams")
@warn("All or nearly all the weight was in one sample. likelihoodparams: $likelihoodparams")
end
return failures / sumweights
end
Expand Down Expand Up @@ -171,8 +171,8 @@ function getrobustnesscurve(bigdt::BigDT, hakunamatata::Number, numlikelihoods::
numlikelihoods += 1
likelihood_colvecs = [likelihoodparams[:,i] for i=1:size(likelihoodparams, 2)]
failureprobs = RobustPmap.rpmap(p->getfailureprobfnct(bigdt, horizons, p), likelihood_colvecs; t=Array{Float64, 1})
#failureprobs = map(p->getfailureprobfnct(bigdt, horizons, p), likelihood_colvecs)
#warn("failureprobs is not pmapped")
# failureprobs = map(p->getfailureprobfnct(bigdt, horizons, p), likelihood_colvecs)
# @warn("failureprobs is not pmapped")
maxfailureprobs = zeros(numhorizons)

badlikelihoodparams = Array{Array{Float64, 1}}(undef, numhorizons)
Expand Down

2 comments on commit f20cb42

@montyvesselinov
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Tag with name v1.1.0 already exists and points to a different commit"

Please sign in to comment.