File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
power_grid_model_c/power_grid_model/include/power_grid_model/common Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -274,14 +274,6 @@ template <std::ranges::view RandVarsView>
274
274
constexpr auto combine_magnitude (RandVarsView rand_vars) {
275
275
using sym = std::ranges::range_value_t <RandVarsView>::sym;
276
276
277
- assert (std::ranges::all_of (rand_vars, [](auto const & measurement) {
278
- if constexpr (is_symmetric_v<sym>) {
279
- return (!is_nan (imag (measurement.value ))) || real (measurement.value ) >= 0.0 ;
280
- } else {
281
- return (!is_nan (imag (measurement.value ))) || (real (measurement.value ) >= 0.0 ).all ();
282
- }
283
- }));
284
-
285
277
auto const weighted_average_magnitude_measurement =
286
278
statistics::combine (rand_vars | std::views::transform ([](auto const & measurement) {
287
279
return UniformRealRandVar<sym>{.value = detail::cabs_or_real<sym>(measurement.value ),
You can’t perform that action at this time.
0 commit comments