Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor bug fix for tests.WarningChecker when IERS is down #1382

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ fully tested and didn't work properly.
- Having `freq_array` and `channel_width` defined on wide-band UVCal objects.

### Fixed
- A small bug (mostly affecting continuous integration) that threw an error when the
IERS service was down and when tests were using `test.check_warnings` to look for no
warnings thrown (i.e., where `match=None`).
- A couple of small bugs related to handling of the `freq_range` parameter in the
`reorder_freqs` and `__add__` methods on `UVCal`.

Expand Down
11 changes: 6 additions & 5 deletions pyuvdata/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,12 @@ def __enter__(self):
warnings.filterwarnings("ignore", message="time is out of IERS range")

test_message = []
for message in self.match:
if message is None:
test_message.append(False)
else:
test_message.append(message.startswith("LST values stored in "))
if self.match is not None:
for message in self.match:
if message is None:
test_message.append(False)
else:
test_message.append(message.startswith("LST values stored in "))
if not any(test_message):
warnings.filterwarnings("ignore", message="LST values stored in ")

Expand Down
Loading