Skip to content

add max_input_length option to conversion transforms#78

Merged
cgrambow merged 2 commits intomainfrom
conversion-transforms-max-len
May 14, 2025
Merged

add max_input_length option to conversion transforms#78
cgrambow merged 2 commits intomainfrom
conversion-transforms-max-len

Conversation

@cgrambow
Copy link
Collaborator

No description provided.

@cgrambow cgrambow temporarily deployed to test.pypi.org May 14, 2025 18:53 — with GitHub Actions Inactive
A tuple containing the original peptide sequence and the converted SMILES string (or None if conversion failed).
"""
if self._max_input_length is not None:
input = input[: self._max_input_length]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO for the future to optionally randomize where we cut this

@cgrambow cgrambow temporarily deployed to test.pypi.org May 14, 2025 18:55 — with GitHub Actions Inactive
@cgrambow cgrambow merged commit 20467f5 into main May 14, 2025
5 checks passed
@cgrambow cgrambow deleted the conversion-transforms-max-len branch May 14, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants