(filename, smiles, unique=True)
return f.closed
Takes path to file and list of SMILES strings and writes SMILES
    to the specified file.
        Args:
            filename (str): path to the file
            smiles (list): list of SMILES strings
            unique (bool): parameter specifying whether to write
            only unique copies or not.
        Output:
            success (bool): defines whether operation
            was successfully completed or not.
Takes path to file and list of SMILES strings and writes SMILES
    to the specified file.
        Args:
            filename (str): path to the file
            smiles (list): list of SMILES strings
            unique (bool): parameter specifying whether to write
            only unique copies or not.
        Output:
            success (bool): defines whether operation
            was successfully completed or not.
Takes path to file and list of SMILES strings and writes SMILES to the specified file . Args : filename ( str ) : path to the file smiles ( list ) : list of SMILES strings unique ( bool ) : parameter specifying whether to write only unique copies or not . Output : success ( bool ) : defines whether operation was successfully completed or not .
def save_smi_to_file(filename, smiles, unique=True):
    """
    Takes path to file and list of SMILES strings and writes SMILES
    to the specified file.
        Args:
            filename (str): path to the file
            smiles (list): list of SMILES strings
            unique (bool): parameter specifying whether to write
            only unique copies or not.
        Output:
            success (bool): defines whether operation
            was successfully completed or not.
       """
    if unique:
        smiles = list(set(smiles))
    else:
        smiles = list(smiles)
    f = open(filename, 'w')
    for mol in smiles:
        f.writelines([mol, '\n'])
    f.close()
    return f.closed
def save_smi_to_file ( filename , smiles , unique = True ) : if unique : smiles = list ( set ( smiles ) ) else : smiles = list ( smiles ) f = open ( filename , 'w' ) for mol in smiles : f . writelines ( [ mol , '\n' ] ) f . close ( ) return f . closed