Skip to content

Commit 6301d8f

Browse files
committed
fix cache import
1 parent 45597c8 commit 6301d8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

chebifier/prediction_models/chemlog_predictor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from functools import lru_cache
21
from typing import Optional
32

43
import tqdm
54

65
from .base_predictor import BasePredictor
6+
from .. import modelwise_smiles_lru_cache
77

88
AA_DICT = {
99
"A": "L-alanine",
@@ -33,7 +33,7 @@
3333

3434

3535
class ChemlogExtraPredictor(BasePredictor):
36-
36+
3737
def __init__(self, model_name: str, **kwargs):
3838
super().__init__(model_name, **kwargs)
3939
self.chebi_graph = kwargs.get("chebi_graph", None)
@@ -42,6 +42,7 @@ def __init__(self, model_name: str, **kwargs):
4242
@modelwise_smiles_lru_cache.batch_decorator
4343
def predict_smiles_list(self, smiles_list: list[str]) -> list:
4444
from chemlog.cli import _smiles_to_mol
45+
4546
mol_list = [_smiles_to_mol(smiles) for smiles in smiles_list]
4647
res = self.classifier.classify(mol_list)
4748
if self.chebi_graph is not None:

0 commit comments

Comments
 (0)