From 59b01867efc9024c932e241d8c1decb7b79b020c Mon Sep 17 00:00:00 2001 From: "Christopher H. Jordan" Date: Fri, 11 Aug 2023 10:09:05 +0800 Subject: [PATCH] Consider -0.0 as a flag, rather than only < 0.0 --- src/io/ms.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/ms.rs b/src/io/ms.rs index e0728f3..e4c5896 100644 --- a/src/io/ms.rs +++ b/src/io/ms.rs @@ -1815,7 +1815,7 @@ impl VisWrite for MeasurementSetWriter { flags_tmp.outer_iter_mut() ) { avg_weight = weight_chunk[[0, 0]]; - avg_flag = avg_weight < 0.; + avg_flag = avg_weight.is_sign_negative(); if vis_ctx.trivial_averaging() { data_tmp_view.assign(&ArrayView::from(vis_chunk[[0, 0]].as_slice())); } else {