Skip to content

Commit

Permalink
fix min_versions test
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Feb 15, 2024
1 parent eef859d commit d2579f6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pyuvsim/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,16 @@ def test_write_uvdata(save_format, tmpdir):
shutil.rmtree(expected_ofname)
else:
os.remove(expected_ofname)
warn_type = [UserWarning]
warn_str = [
"The lst_array is not self-consistent with the time_array and "
"telescope location. Consider recomputing with the "
"`set_lsts_from_time_array` method."
]
if version.parse(pyuvdata.__version__) > version.parse("2.4.0"):
warn_type = [UserWarning]
warn_str = [
"The lst_array is not self-consistent with the time_array and "
"telescope location. Consider recomputing with the "
"`set_lsts_from_time_array` method."
]
else:
warn_type = None
warn_str = ""
with uvtest.check_warnings(warn_type, match=warn_str):
expected_ofname = simutils.write_uvdata(uv, filing_dict,
return_filename=True,
Expand Down

0 comments on commit d2579f6

Please sign in to comment.