diff --git a/modules/mol/alg/pymod/qsscore.py b/modules/mol/alg/pymod/qsscore.py index 9b95f56fbf6c4802fa110b044f183c826e3a7ed1..3b32746d6efa95c220034dbdc0011efdd6e87b59 100644 --- a/modules/mol/alg/pymod/qsscore.py +++ b/modules/mol/alg/pymod/qsscore.py @@ -255,6 +255,8 @@ class QSScorerResult: def QS_best(self): """ QS_best - the actual score as described in formula section above + Returns None if there are no contacts in the compared structures + :type: :class:`float` """ nominator = self.weighted_scores @@ -262,12 +264,14 @@ class QSScorerResult: if denominator != 0.0: return nominator/denominator else: - return 0.0 + return None @property def QS_global(self): """ QS_global - the actual score as described in formula section above + Returns None if there are no contacts in the compared structures + :type: :class:`float` """ nominator = self.weighted_scores @@ -275,7 +279,7 @@ class QSScorerResult: if denominator != 0.0: return nominator/denominator else: - return 0.0 + return None class QSScorer: