Skip to content

Commit

Permalink
Merge pull request #33 from yutanagano/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
yutanagano committed Jun 4, 2023
2 parents 5c7c0ac + 181a4f3 commit 172a3d2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.4
1.8.5
2 changes: 1 addition & 1 deletion src/tidytcells/_utils/abstract_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def standardize_aa_template(seq: str, on_fail: str, suppress_warnings: bool):
if not char in AMINO_ACIDS:
if not suppress_warnings:
warn(
f"Input {original_input} was rejected as it is not a valid amino acid sequence."
f"Failed to standardize {original_input}: not a valid amino acid sequence."
)
if on_fail == "reject":
return None
Expand Down
2 changes: 1 addition & 1 deletion src/tidytcells/junction/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def standardize(
if strict:
if not suppress_warnings:
warn(
f"Input {original_input} was rejected as it is not a valid junction sequence."
f"Failed to standardize {original_input}: not a valid junction sequence."
)
if on_fail == "reject":
return None
Expand Down
2 changes: 1 addition & 1 deletion tests/test_aa.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_alreadY_correct(self, seq):

@pytest.mark.parametrize("seq", ("123456", "ASDFGHJKL", "A?AAAA", "AAAXAA"))
def test_various_rejections(self, seq):
with pytest.warns(UserWarning, match="is not a valid amino acid"):
with pytest.warns(UserWarning, match="not a valid amino acid"):
result = aa.standardize(seq=seq)

assert result == None
Expand Down
4 changes: 2 additions & 2 deletions tests/test_junction.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_already_correct(self, seq):

@pytest.mark.parametrize("seq", ("123456", "ASDFGHJKL", "A?AAAA", "AAAXAA"))
def test_various_rejections(self, seq):
with pytest.warns(UserWarning, match="is not a valid amino acid sequence"):
with pytest.warns(UserWarning, match="not a valid amino acid sequence"):
result = junction.standardise(seq=seq)

assert result is None
Expand All @@ -54,7 +54,7 @@ def test_bad_input_type(self, seq):

@pytest.mark.parametrize("seq", ("ASQY", "CASQY", "ASQYF", "ASQYW"))
def test_strict(self, seq):
with pytest.warns(UserWarning, match="is not a valid junction"):
with pytest.warns(UserWarning, match="not a valid junction"):
result = junction.standardise(seq=seq, strict=True)

assert result is None
Expand Down

0 comments on commit 172a3d2

Please sign in to comment.