Skip to content

Commit

Permalink
Fix build_fringe_rate_profiles bug when number of pols = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Jun 27, 2023
1 parent 6aecc0b commit d174d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hera_cal/frf.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def build_fringe_rate_profiles(uvd, uvb, keys=None, normed=True, combine_pols=Tr
binned_power_conj = np.zeros_like(fr_grid)
# iterate over each frequency and ftaper weighting.
# use linspace to make sure we get first and last frequencies.
unflagged_chans = ~np.all(np.all(uvd.flag_array[:, :, :].squeeze(), axis=0), axis=-1)
unflagged_chans = ~np.all(np.all(uvd.flag_array, axis=0), axis=-1).squeeze()
chans_to_use = np.arange(uvd.Nfreqs).astype(int)[unflagged_chans][::fr_freq_skip]
frate_coeff = 2 * np.pi / SPEED_OF_LIGHT / (1e-3 * SDAY_SEC)
frate_over_freq = np.dot(np.cross(np.array([0, 0, 1.]), blvec), eq_xyz) * frate_coeff
Expand Down

0 comments on commit d174d3f

Please sign in to comment.