Skip to content

Commit

Permalink
Fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed May 31, 2022
1 parent 6f8d844 commit 2607572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyuvsim/telescope.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__(

def _get_beam_basis_type(self):
if self.string_mode:
raise ValueError("Cannot get beam basis type a string-mode BeamList.")
raise ValueError("Cannot get beam basis type from a string-mode BeamList.")

beam_basis = {}
for index, bm in enumerate(self):
Expand Down
3 changes: 2 additions & 1 deletion pyuvsim/tests/test_telescope.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def test_beam_basis_type(beam_objs):


@pytest.mark.filterwarnings("ignore:key beam_path in extra_keywords is longer")
@pytest.mark.filterwarnings('ignore:Achromatic gaussian')
def test_beam_basis_type_errors(beam_objs):
beam_objs[0].pixel_coordinate_system = "orthoslant_zenith"
beam_objs[0].check()
Expand Down Expand Up @@ -303,7 +304,7 @@ def test_beam_basis_type_errors(beam_objs):
beamlist.set_str_mode()
with pytest.raises(
ValueError,
match="Cannot get beam basis type a string-mode BeamList."
match="Cannot get beam basis type from a string-mode BeamList."
):
beamlist._get_beam_basis_type()

Expand Down

0 comments on commit 2607572

Please sign in to comment.