Skip to content

Commit

Permalink
updated build_uvp in testing.py to reflect polarization updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nkern committed May 23, 2018
1 parent 919ba58 commit 8d71f24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hera_pspec/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ def build_uvpspec_from_data(data, bls, spw_ranges=None, beam=None, taper='none',
elif isinstance(data, UVData):
uvd = data

# get pol
pol = uvd.polarization_array[0]

# load beam
if isinstance(beam, str):
beam = pspecbeam.PSpecBeamUV(beam, cosmo=cosmo)
Expand All @@ -153,7 +156,7 @@ def build_uvpspec_from_data(data, bls, spw_ranges=None, beam=None, taper='none',
bls1, bls2, _ = pspecdata.construct_blpairs(bls, exclude_auto_bls=True)

# run pspec
uvp = ds.pspec(bls1, bls2, (0, 1), input_data_weight='identity', spw_ranges=spw_ranges,
uvp = ds.pspec(bls1, bls2, (0, 1), (pol, pol), input_data_weight='identity', spw_ranges=spw_ranges,
taper=taper, verbose=verbose)

return uvp
Expand Down

0 comments on commit 8d71f24

Please sign in to comment.