From 8b7a8cc04c9d0c3f1d69ffa763061647e0f208d4 Mon Sep 17 00:00:00 2001 From: sjforeman Date: Fri, 2 Aug 2024 14:10:22 -0700 Subject: [PATCH] refactor(TransitTelescope): remove unused variable from transfer_matrices --- drift/core/telescope.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drift/core/telescope.py b/drift/core/telescope.py index 215cc51..1b79a90 100644 --- a/drift/core/telescope.py +++ b/drift/core/telescope.py @@ -177,7 +177,7 @@ class TransitTelescope(config.Reader, ctime.Observer, metaclass=abc.ABCMeta): Use specific values for the telescope's l_max and m_max, instead of computing these values based on the angular scales accessible to the longest baseline at the highest frequency. l_boost is ignored if these values are specified. - This is useful if you intend to combine several sets of beam transfer matrices + This is useful if you intend to combine several sets of beam transfer matrices that are separately computed over different frequency ranges. Default: None. minlength, maxlength : scalar Minimum and maximum baseline lengths to include (in metres). @@ -808,8 +808,6 @@ def transfer_matrices(self, bl_indices, f_indices, global_lmax=True): # Sort the baselines by ascending lmax and iterate through in that # order, calculating the transfer matrices - i_arr = np.argsort(lmax.flat) - for iflat in np.argsort(lmax.flat): ind = np.unravel_index(iflat, lmax.shape)