Awesome! Thank you all so much!!!

Here is my implementation of the function for reference:

def passed_NA2SR(mol): #no atom shared by two small rings
    rings = mol.GetRingInfo().AtomRings()
    small_rings = []
    for ring in rings:
        if len(ring) < 5:
    small_ring_atoms = []
    for small_ring in small_rings:
        for ring_atom in small_ring:
            if ring_atom in small_ring_atoms:
                return False
    return True
Check out the vibrant tech community on one of the world's most
engaging tech sites,!
Rdkit-discuss mailing list

Reply via email to