forgot strict
Browse files- selfies_converter.py +1 -1
selfies_converter.py
CHANGED
|
@@ -53,7 +53,7 @@ def convert_file(input_file, verbose=False, batch_size=10000):
|
|
| 53 |
def process_batch(batch, fout, alphabet):
|
| 54 |
for smiles in batch:
|
| 55 |
try:
|
| 56 |
-
selfies = sf.encoder(smiles)
|
| 57 |
fout.write(f"{selfies}\n")
|
| 58 |
alphabet.update(sf.split_selfies(selfies))
|
| 59 |
except sf.EncoderError:
|
|
|
|
| 53 |
def process_batch(batch, fout, alphabet):
|
| 54 |
for smiles in batch:
|
| 55 |
try:
|
| 56 |
+
selfies = sf.encoder(smiles , strict=False)
|
| 57 |
fout.write(f"{selfies}\n")
|
| 58 |
alphabet.update(sf.split_selfies(selfies))
|
| 59 |
except sf.EncoderError:
|