From 88d7a844b5bb4ff8ce556d711d5d2668537c5fed Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Tue, 22 Dec 2020 12:04:22 +0100 Subject: [PATCH] fix erroneous check whether any maps are applied --- src/sage/databases/findstat.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/sage/databases/findstat.py b/src/sage/databases/findstat.py index 896fba3a938..1a9cc4dfb74 100644 --- a/src/sage/databases/findstat.py +++ b/src/sage/databases/findstat.py @@ -2946,12 +2946,22 @@ def info(self): among the values you sent, 17 percent are actually in the database, among the distinct values you sent, 83 percent are actually in the database + + sage: r = FindStatMatchingStatistic("St000042", 1, [17, 83]) # optional -- internet + sage: r.info() # optional -- internet + after adding 1 to every value + + your input matches + St000042: The number of crossings of a perfect matching. + + among the values you sent, 17 percent are actually in the database, + among the distinct values you sent, 83 percent are actually in the database """ if self.offset() < 0: print("after subtracting %s from every value" % (-self.offset())) if self.offset() > 0: print("after adding %s to every value" % self.offset()) - if self.compound_map(): + if len(self.compound_map()): if self.offset(): print("and applying") else: