Commits

Muzychenko Inna authored b50a3f0837a
Changes according to the NAOJ code review Refs #2723

casatools/src/code/singledish/SingleDish/SingleDishMS.cc

Modified
3155 3155 }
3156 3156 }
3157 3157
3158 3158 get_coeff_funcname = "sakura_LSQFitSinusoidFloat";
3159 3159 break;
3160 3160 default:
3161 3161 throw(AipsError("Unsupported baseline type."));
3162 3162 }
3163 3163 check_sakura_status(get_coeff_funcname, status);
3164 3164 //For separating of cubic spline in pieces
3165 - size_t num_ffpar;
3166 - num_ffpar = get_num_coeff_bloutput(fit_param.baseline_type,
3165 + const auto num_ffpar = get_num_coeff_bloutput(fit_param.baseline_type,
3167 3166 fit_param.npiece, num_ffpar_max);
3168 3167 ffpar_mtx_tmp[ipol].clear();
3169 3168 for (size_t ipiece = 0; ipiece < num_ffpar; ++ipiece) {
3170 3169 ffpar_mtx_tmp[ipol].push_back(boundary_data[ipiece]);
3171 3170 }
3172 3171
3173 3172 coeff_mtx_tmp[ipol].clear();
3174 3173 for (size_t icoeff = 0; icoeff < num_coeff; ++icoeff) {
3175 3174 coeff_mtx_tmp[ipol].push_back(coeff_data[icoeff]);
3176 3175 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut