diff --git a/examples/demos/correlate.py b/examples/demos/correlate.py index 1b65722d65df83a500e3c2a76346c70c346a978d..f7ff13f29253aaea04d7b2ae6983db1adcc89e0f 100644 --- a/examples/demos/correlate.py +++ b/examples/demos/correlate.py @@ -6,7 +6,7 @@ # tabula rasa first scene.RemoveAll() - +import functools import ost.img.alg as img_alg from ost.mol.alg import EntityToDensityRosetta, HIGH_RESOLUTION sdh=io.LoadPDB('data/sdh-complete.pdb') @@ -77,7 +77,7 @@ def Visualize(candidates): return 0 else: return 1 - candidates=sorted(candidates, cmp_correl) + candidates=sorted(candidates, key=functools.cmp_to_key(cmp_correl)) # create render objects and add to scene for index, candidate in enumerate(candidates):