Skip to content

Commit

Permalink
fix erroneous check whether any maps are applied
Browse files Browse the repository at this point in the history
  • Loading branch information
mantepse committed Dec 22, 2020
1 parent 0ff9533 commit 88d7a84
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/sage/databases/findstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2946,12 +2946,22 @@ def info(self):
<BLANKLINE>
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
<BLANKLINE>
your input matches
St000042: The number of crossings of a perfect matching.
<BLANKLINE>
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:
Expand Down

0 comments on commit 88d7a84

Please sign in to comment.