Skip to content

Commit

Permalink
Fix test errors introduced by tracking observer in extra_keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton authored and plaplant committed Sep 30, 2021
1 parent ea36e16 commit d5fe80f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyuvdata/uvdata/tests/test_mir.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def test_read_mir_write_ms(uv_in_ms, future_shapes):
ms_uv.history = mir_uv.history

# Only MS has extra keywords, verify those look as expected.
assert ms_uv.extra_keywords == {"DATA_COL": "DATA"}
assert ms_uv.extra_keywords == {"DATA_COL": "DATA", "observer": "SMA"}
assert mir_uv.extra_keywords == {}
mir_uv.extra_keywords = ms_uv.extra_keywords

Expand Down
2 changes: 2 additions & 0 deletions pyuvdata/uvdata/tests/test_miriad.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ def test_read_carma_miriad_write_ms(tmp_path):

# Make sure the MS extra keywords are as expected
assert uv_out.extra_keywords["DATA_COL"] == "DATA"
assert uv_out.extra_keywords["observer"] == "SZA"
uv_in.extra_keywords["DATA_COL"] = "DATA"
uv_in.extra_keywords["observer"] = "SZA"

# make sure filename is what we expect
assert uv_in.filename == ["carma_miriad"]
Expand Down

0 comments on commit d5fe80f

Please sign in to comment.