Skip to content

Commit

Permalink
Merge 1cbf5b9 into aca6586
Browse files Browse the repository at this point in the history
  • Loading branch information
nkern committed Jul 10, 2019
2 parents aca6586 + 1cbf5b9 commit bb38279
Show file tree
Hide file tree
Showing 9 changed files with 16,253 additions and 167 deletions.
5,151 changes: 5,151 additions & 0 deletions hera_pspec/data/zen.2458116.30448.HH.flagged_abs.calfits

Large diffs are not rendered by default.

Binary file added hera_pspec/data/zen.2458116.30448.HH.uvh5
Binary file not shown.
5,043 changes: 5,043 additions & 0 deletions hera_pspec/data/zen.2458116.31193.HH.flagged_abs.calfits

Large diffs are not rendered by default.

Binary file added hera_pspec/data/zen.2458116.31193.HH.uvh5
Binary file not shown.
5,615 changes: 5,615 additions & 0 deletions hera_pspec/data/zen.2458116.31939.HH.flagged_abs.calfits

Large diffs are not rendered by default.

Binary file added hera_pspec/data/zen.2458116.31939.HH.uvh5
Binary file not shown.
305 changes: 234 additions & 71 deletions hera_pspec/pspecdata.py

Large diffs are not rendered by default.

294 changes: 204 additions & 90 deletions hera_pspec/tests/test_pspecdata.py

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions hera_pspec/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ def calc_blpair_reds(uvd1, uvd2, bl_tol=1.0, filter_blpairs=True,
"tolerance of {} m".format(bl_tol)
assert np.linalg.norm(antpos1[a] - antpos2[a]) < bl_tol, msg

# get xants
# calculate xants via flags if asked
xants1, xants2 = [], []
if filter_blpairs:
if filter_blpairs and uvd1.flag_array is not None and uvd2.flag_array is not None:
xants1, xants2 = set(ants1), set(ants2)
baselines = sorted(set(uvd1.baseline_array).union(set(uvd2.baseline_array)))
for bl in baselines:
Expand Down Expand Up @@ -573,10 +573,10 @@ def config_pspec_blpairs(uv_templates, pol_pairs, group_pairs, exclude_auto_bls=
bl_deg_range=(0, 180), xants=None, exclude_patterns=None,
file_type='miriad', verbose=True):
"""
Given a list of miriad file templates and selections for
Given a list of glob-parseable file templates and selections for
polarization and group labels, construct a master list of
group-pol pairs, and also a list of blpairs for each
group-pol pair.
group-pol pair given selections on baseline angles and lengths.
A group is a fieldname in the visibility files that denotes the
"type" of dataset. For example, the group field in the following files
Expand Down Expand Up @@ -624,7 +624,7 @@ def config_pspec_blpairs(uv_templates, pol_pairs, group_pairs, exclude_auto_bls=
files (after the templates have been filled-in). This currently
just takes a list of strings, and does not recognize wildcards.
Default: None.
file_type : str, optional
File type of the input files. Default: 'miriad'.
Expand Down Expand Up @@ -671,7 +671,7 @@ def config_pspec_blpairs(uv_templates, pol_pairs, group_pairs, exclude_auto_bls=
if _unique_file not in unique_files:
unique_files.append(_unique_file)
unique_files = sorted(unique_files)

# Exclude user-specified patterns
if exclude_patterns is not None:
to_exclude = []
Expand Down

0 comments on commit bb38279

Please sign in to comment.