From 8d7b8208c1c2aa2e8283a09f49860052b0f0bb33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Correia?= Date: Fri, 28 Jun 2024 17:50:49 +0100 Subject: [PATCH] [FIX] work on all OS --- src/biocatalyzer/bioreactor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/biocatalyzer/bioreactor.py b/src/biocatalyzer/bioreactor.py index b70cef4..dc1943d 100644 --- a/src/biocatalyzer/bioreactor.py +++ b/src/biocatalyzer/bioreactor.py @@ -605,7 +605,7 @@ def _react_single(self, smiles: str, smarts: str): with open(self._new_compounds_path, 'a', newline='', encoding='utf-8') as f: f.write(f"{smiles_id}\t{smiles}\t{smarts_id}\t{smiles_id}_{uuid.uuid4()}\t" f"{most_similar_product}\t{result}\t{ecs}\n") - if f"{smiles_id}\t{smiles}\t{smarts_id}\t{smiles_id}_{uuid.uuid4()}\t{most_similar_product}\t{result}\t{ecs}\n".split('\t') != 7: + if f"{smiles_id}\t{smiles}\t{smarts_id}\t{smiles_id}_{uuid.uuid4()}\t{most_similar_product}\t{result}\t{ecs}\n".split('\t') != 6: e = f"{smiles_id}\t{smiles}\t{smarts_id}\t{smiles_id}_{uuid.uuid4()}\t{most_similar_product}\t{result}\t{ecs}\n" raise ValueError(f'Wrong number of columns. Got {len(e.split("\t"))} columns. {e}')