Skip to content

Commit

Permalink
Changed ~ to _ wherever necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienbaron committed Aug 1, 2024
1 parent e811536 commit b58ed84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/modelfit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -785,11 +785,11 @@ function bootstrap_fit(nbootstraps, data::OIdata, model::OImodel; fitter=:LN_NEL
println("Boostrap $(k) out of $(nbootstraps)");
end
if fitter==:UltraNest
f_chi2, par_opt, ~ = fit_model_ultranest(resample_data(data), model, verbose=false, weights=weights);
f_chi2, par_opt, _ = fit_model_ultranest(resample_data(data), model, verbose=false, weights=weights);
elseif fitter==:Levenberg
f_chi2, par_opt, ~ = fit_model_levenberg(resample_data(data), model, verbose=false, weights=weights);
f_chi2, par_opt, _ = fit_model_levenberg(resample_data(data), model, verbose=false, weights=weights);
else
f_chi2, par_opt, ~ = fit_model_nlopt(resample_data(data), model, fitter=fitter, verbose=false, weights=weights);
f_chi2, par_opt, _ = fit_model_nlopt(resample_data(data), model, fitter=fitter, verbose=false, weights=weights);
end
params[:, k]= par_opt;
end
Expand Down
6 changes: 3 additions & 3 deletions src/oichi2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ end
function image_to_obs(x, ft, data)
cvis_model = image_to_vis(x, ft);
v2_model = vis_to_v2(cvis_model, data.indx_v2);
~, t3amp_model, t3phi_model = vis_to_t3(cvis_model, data.indx_t3_1, data.indx_t3_2 ,data.indx_t3_3);
_, t3amp_model, t3phi_model = vis_to_t3(cvis_model, data.indx_t3_1, data.indx_t3_2 ,data.indx_t3_3);
return v2_model, t3amp_model, t3phi_model
end

Expand Down Expand Up @@ -131,12 +131,12 @@ function image_to_v2(x, data, ft::Array{NFFT.NFFTPlan{Float64, 2, 1}, 1})
end

function image_to_t3phi(x, data, ft::Array{NFFT.NFFTPlan{Float64, 2, 1}, 1})
~, ~, t3phi_model = vis_to_t3(image_to_vis(x, ft), data.indx_t3_1, data.indx_t3_2 ,data.indx_t3_3)
_, _, t3phi_model = vis_to_t3(image_to_vis(x, ft), data.indx_t3_1, data.indx_t3_2 ,data.indx_t3_3)
return t3phi_model
end

function image_to_t3amp(x, data, ft::Array{NFFT.NFFTPlan{Float64, 2, 1}, 1})
~, t3amp_model,~ = vis_to_t3(image_to_vis(x, ft), data.indx_t3_1, data.indx_t3_2 ,data.indx_t3_3)
_, t3amp_model,_ = vis_to_t3(image_to_vis(x, ft), data.indx_t3_1, data.indx_t3_2 ,data.indx_t3_3)
return t3amp_model
end

Expand Down

0 comments on commit b58ed84

Please sign in to comment.