Closed jsdillon closed 1 year ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
bd65cd8
) 95.99% compared to head (9f71ded
) 95.99%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The documentation of
utils.uvp_noise_error()
suggest that if "power spectra were computed from interleaved times then the suppliedauto_Tsys
should include all of the times that are present in all of the pairs." For interleaved power spectra, that the number of times inauto_Tsys
(aUVData
object) might be double (or more, for more interleaves) the number of times inuvp.lst_avg_array
.This creates a problem in the line
because
lsts
is calculated aswhile
Tflag
has a shape determined by the number of times inuvp.time_1_array
anduvp.time_2_array
. When that number of times don't match, this causes an error inlsts[~Tflag]
becauseTflag
is half the length oflsts
(for example).This PR fixes that bug by ensuring that the range of lsts indexed into by
~Tflag
is the precise right shape.@Kai-FengChen can you review this PR? Also, @aewallwi just wanted to give you a heads up since this might impinge on your work.