Skip to content

Commit fab41eb

Browse files
committed
fix an indexing error in quickview
1 parent 7bdd586 commit fab41eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PyFHD/io/pyfhd_quickview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def quickview(
245245
high=np.max(beam_mask_test),
246246
)
247247
beam_mask0 = np.zeros([obs_out["dimension"], obs_out["elements"]])
248-
beam_mask0.flat[beam_i] = 1
248+
beam_mask0[beam_i] = 1
249249
beam_avg += beam_base_out[pol_i] ** 2
250250
beam_mask *= beam_mask0
251251
beam_avg /= min(obs["n_pol"], 2)

0 commit comments

Comments
 (0)