From 93b1ae59b0942d8eadf765b6651cdd6afab9b9d5 Mon Sep 17 00:00:00 2001 From: "Christopher H. Jordan" Date: Thu, 21 Sep 2023 11:52:49 +0800 Subject: [PATCH] Hard-code all weights to be 1.0 I'm not entirely sure why, but incoming weights are ignored and all output weights are 0.0. --- src/io/uvfits.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io/uvfits.rs b/src/io/uvfits.rs index ff108e3..62c5532 100644 --- a/src/io/uvfits.rs +++ b/src/io/uvfits.rs @@ -1018,6 +1018,7 @@ impl VisWrite for UvfitsWriter { .for_each(|(vis_chunk_element, vis)| { *vis_chunk_element = vis; }); + vis_chunk[2] = 1.0; } Self::write_vis_row_inner(self.fptr, &mut self.current_num_rows, &mut self.buffer)?;