Skip to content

Commit

Permalink
refactor(TransitTelescope): remove unused variable from transfer_matr…
Browse files Browse the repository at this point in the history
…ices
  • Loading branch information
sjforeman committed Aug 2, 2024
1 parent c5eb2dc commit 8b7a8cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drift/core/telescope.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 8b7a8cc

Please sign in to comment.