We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc082b8 commit 8596bcaCopy full SHA for 8596bca
1 file changed
pyaptamer/trafos/encode/_greedy.py
@@ -1,8 +1,9 @@
1
"""Base transformation class."""
2
3
+import warnings
4
+
5
import numpy as np
6
import pandas as pd
-import warnings
7
8
from pyaptamer.trafos.base import BaseTransform
9
@@ -117,9 +118,11 @@ def _transform(self, X):
117
118
# stop if we've reached max_len tokens
119
if max_len is not None and len(tokens) >= max_len:
120
tokens = tokens[:max_len]
- warnings.warn("One or more sequence exceeds maximum length and was truncted ",
121
- UserWarning,
122
- stacklevel=2)
+ warnings.warn(
+ "One or more sequence exceeds maximum length and was truncted ",
123
+ UserWarning,
124
+ stacklevel=2,
125
+ )
126
break
127
128
encoded_seqs.append(tokens)
0 commit comments