1.1.1.3.1.1.1.5.4. SortMorphsOper

class molpher.swig_wrappers.core.SortMorphsOper(*args)[source]

Bases: molpher.swig_wrappers.core.TreeOperation

Parameters:
  • tree (ExplorationTree instance) – a tree to run this operation on (optional)
  • callback (instance of SortMorphsCallback) – callable to call every time two molecules need to be compared

A tree operation used to sort the candidate morphs in an exploration tree using the specified SortMorphsCallback.

Candidate morphs are sorted in order of their increasing distance from the target.

__call__()[source]

Call self as a function.

Sort the candidate morphs.