Skip to content

Commit

Permalink
fix test_invalid_aggr_domain
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadtourei committed Jan 23, 2025
1 parent 7e7ccc5 commit ec3fa5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dascore/viz/spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def spectrogram(
spec = _spec.aggregate(other_dim, method="mean").squeeze()
else:
raise ValueError(
f"The aggr_domain '{aggr_domain}' should be 'time' or 'frequency.'"
f"The aggr_domain '{aggr_domain}' should be 'time' or 'frequency'."
)
else:
spec = patch.spectrogram(dim)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_viz/test_spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_invalid_dim(self, random_patch):

def test_invalid_aggr_domain(self, random_patch):
"""Ensure ValueError is raised for invalid aggr_domain."""
with pytest.raises(ValueError, match="should be either 'time' or 'frequency'"):
with pytest.raises(ValueError, match="should be 'time' or 'frequency'."):
random_patch.viz.spectrogram(aggr_domain="invalid")

def test_invalid_patch_dims(self, random_patch):
Expand Down

0 comments on commit ec3fa5d

Please sign in to comment.