Skip to content

Commit

Permalink
Set Inf or NaN concentration to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
notZaki committed Aug 23, 2020
1 parent 0846fac commit cd81e49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/science.jl
Expand Up @@ -233,6 +233,7 @@ function fitdata(opts::Dict)
end
R1 = r1eff(dcedata, R10, TR, dceflip)
Ct = tissueconc(R1, R10, relaxivity)
@. Ct[!isfinite(Ct)] = 0
params, resid, modelmap = fitdce(Ct, mask, t, Cp, models=models)

results = Dict()
Expand Down

0 comments on commit cd81e49

Please sign in to comment.