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

Minor fix in everybeam primarybeam calculation

parent b554c457
No related branches found
No related tags found
1 merge request!63Minor fix in everybeam primarybeam calculation
Pipeline #3706 passed
...@@ -26,7 +26,7 @@ void GriddedResponse::CalculateIntegratedResponse( ...@@ -26,7 +26,7 @@ void GriddedResponse::CalculateIntegratedResponse(
} }
// Scaling factor // Scaling factor
double baseline_total_weight = 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 // Copy coordinate members
size_t width_original = width_, height_original = height_; size_t width_original = width_, height_original = height_;
...@@ -69,7 +69,7 @@ void GriddedResponse::CalculateIntegratedResponse( ...@@ -69,7 +69,7 @@ void GriddedResponse::CalculateIntegratedResponse(
// Scaling factor // Scaling factor
double baseline_total_weight = 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 // Copy coordinate members
size_t width_original = width_, height_original = height_; 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