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

Develop #33

Merged
merged 2 commits into from
Jun 4, 2023
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
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