diff --git a/draco/analysis/ringmapmaker.py b/draco/analysis/ringmapmaker.py index 176e21a70..b91a4fd9e 100644 --- a/draco/analysis/ringmapmaker.py +++ b/draco/analysis/ringmapmaker.py @@ -512,7 +512,7 @@ def B(phi, u, sigma): # Get the effective beamwidth for the polarisation combination sig_a = beam_width[pa](freq, dec) sig_b = beam_width[pb](freq, dec) - sig = sig_a * sig_b / (sig_a**2 + sig_b**2)**0.5 + sig = sig_a * sig_b / (sig_a ** 2 + sig_b ** 2) ** 0.5 sig_arr = sig[np.newaxis, :, np.newaxis] # Calculate the effective beam transfer function at each declination diff --git a/draco/analysis/transform.py b/draco/analysis/transform.py index f3fb447a8..8d5a6280a 100644 --- a/draco/analysis/transform.py +++ b/draco/analysis/transform.py @@ -218,7 +218,7 @@ def process(self, ss): attrs_from=ss, distributed=True, comm=ss.comm, - **output_kwargs + **output_kwargs, ) # Add gain dataset. @@ -501,12 +501,11 @@ def process(self, sstream): # marray = _make_marray(sstream.vis[:], mmax) # marray = mpiarray.MPIArray.wrap(marray[:], axis=freq_axis, comm=sstream.comm) - # Assign the visibilities and weights into the container - #ma.vis[:] = marray - #ma.weight[:] = weight_sum[np.newaxis, np.newaxis, :, :] + # ma.vis[:] = marray + # ma.weight[:] = weight_sum[np.newaxis, np.newaxis, :, :] - #ma.redistribute("m") + # ma.redistribute("m") return ma