Skip to content

Commit 0e689b9

Browse files
committed
Fixed array shape
1 parent ee60784 commit 0e689b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hera_pspec/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def variance_from_auto_correlations(uvd, bl, spw_range, time_index):
119119
nsample_bl = np.where(nsample_bl>0, nsample_bl, np.median(uvd.nsample_array[:, spw, :]))
120120
df = np.array(uvd.channel_width)[spw]
121121
# some impainted data have zero nsample while is not flagged, and they will be assigned the median nsample within the spectral window.
122-
var = np.abs(x_bl1*x_bl2.conj()) / dt / df[None, :] / nsample_bl
122+
var = np.abs(x_bl1*x_bl2.conj()) / dt / df / nsample_bl
123123

124124
return var
125125

0 commit comments

Comments
 (0)