Closed hakjean-kim closed 2 hours ago
readers return an iterable of molecules, not a molecule object.
import nuri
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-p", "--path", type=str, required=True, help="file path")
args = parser.parse_args()
with open(args.path, 'r') as g:
for line in g:
- mol = nuri.readstring("smi",line,False)
+ mol = next(nuri.readstring("smi",line,False))
print(str(mol))
print(type(mol))
a = nuri.to_smiles(mol)
print(a)
It returns error messages:
and it returns error at to_smiles also.
It happens at nurikit version 0.1.0a5.
Platform information: