Skip to content

Commit

Permalink
[FIX] work on all OS
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorreia11 committed Jun 28, 2024
1 parent 2fac58b commit 8d7b820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/biocatalyzer/bioreactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

Expand Down

0 comments on commit 8d7b820

Please sign in to comment.