Skip to content
Snippets Groups Projects
Commit a48e8106 authored by Jakob Maljaars's avatar Jakob Maljaars
Browse files

Merge branch 'wsclean-integration-fixes' into 'master'

Minor fix in everybeam primarybeam calculation

See merge request !63
parents b554c457 90696eba
No related branches found
No related tags found
1 merge request!63Minor fix in everybeam primarybeam calculation
Pipeline #3786 passed
......@@ -26,7 +26,7 @@ void GriddedResponse::CalculateIntegratedResponse(
}
// Scaling factor
double baseline_total_weight =
std::accumulate(baseline_weights.begin(), baseline_weights.end(), 0);
std::accumulate(baseline_weights.begin(), baseline_weights.end(), 0.0);
// Copy coordinate members
size_t width_original = width_, height_original = height_;
......@@ -69,7 +69,7 @@ void GriddedResponse::CalculateIntegratedResponse(
// Scaling factor
double baseline_total_weight =
std::accumulate(baseline_weights.begin(), baseline_weights.end(), 0);
std::accumulate(baseline_weights.begin(), baseline_weights.end(), 0.0);
// Copy coordinate members
size_t width_original = width_, height_original = height_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment