def removeAllCoordsetsFromStructureLeavingFirst(structure):
    num_conformations = structure.numCoordsets()

    while num_conformations > 1:
        num_conformations-=1
        structure.delCoordset(num_conformations)
dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/pyproct/tools/prodyTools.py/removeAllCoordsetsFromStructureLeavingFirst/original