Skip to content

Commit 8596bca

Browse files
committed
fix pre commit issue
1 parent fc082b8 commit 8596bca

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

pyaptamer/trafos/encode/_greedy.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""Base transformation class."""
22

3+
import warnings
4+
35
import numpy as np
46
import pandas as pd
5-
import warnings
67

78
from pyaptamer.trafos.base import BaseTransform
89

@@ -117,9 +118,11 @@ def _transform(self, X):
117118
# stop if we've reached max_len tokens
118119
if max_len is not None and len(tokens) >= max_len:
119120
tokens = tokens[:max_len]
120-
warnings.warn("One or more sequence exceeds maximum length and was truncted ",
121-
UserWarning,
122-
stacklevel=2)
121+
warnings.warn(
122+
"One or more sequence exceeds maximum length and was truncted ",
123+
UserWarning,
124+
stacklevel=2,
125+
)
123126
break
124127

125128
encoded_seqs.append(tokens)

0 commit comments

Comments
 (0)