Skip to content

Commit

Permalink
Making changes in response to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kartographer committed Jun 28, 2024
1 parent 177fbe1 commit 6bd6834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pyuvdata/uvdata/mir_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2100,9 +2100,9 @@ def _fix_acdata(self):
data_arr = self.ac_data._data[field]
export_data_arr = self.bl_data._data[field]
for key, idx_arr in ac_groups.items():
try:
if key in bl_groups:
data_arr[idx_arr] = np.median(export_data_arr[bl_groups[key]])
except KeyError:
else:
# If no key is found, then skip over filling in the data. Odds are
# this is single-rx data, which means the second receiver is
# basically blank, so flag the entry
Expand Down
1 change: 0 additions & 1 deletion tests/uvdata/test_mir_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2364,4 +2364,3 @@ def test_mir_parser_missing_auto_rx(mir_data):

# Verify that every other entry is flagged, which means no data for that rx
assert np.array_equal(mir_data.ac_data._mask, [True, False] * 8)
mir_data.ac_data["corrchunk"]

0 comments on commit 6bd6834

Please sign in to comment.