Opened 8 years ago

Closed 8 years ago

#5781 closed defect (fixed)

[with patch, positive review] The empty standard tableau exists ! :-)

Reported by: hivert Owned by: hivert
Priority: major Milestone: sage-3.4.1
Component: combinatorics Keywords: tableau
Cc: sage-combinat Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

Before my patch:

sage: [] in StandardTableaux()
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/home/averell/.sage/temp/tomahawk/19026/_home_averell__sage_init_sage_0.py in <module>()

/usr/local/sage/sage/local/lib/python2.5/site-packages/sage/combinat/tableau.pyc in __contains__(self, x)
   1740             fillings += row
   1741         fillings.sort()
-> 1742         if fillings != range(1, max(fillings)+1):
   1743             return False
   1744

ValueError: max() arg is an empty sequence

Now:

sage: [] in StandardTableaux()
True

Florent, the specialist of the empty objects !!!

Attachments (1)

empty_standard_tableau-fh-final.patch (823 bytes) - added by hivert 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by hivert

comment:1 Changed 8 years ago by hivert

  • Status changed from new to assigned

comment:2 Changed 8 years ago by nthiery

  • Summary changed from [with patch, need review] The empty standard tableau exists ! :-) to [with patch, positive review] The empty standard tableau exists ! :-)

comment:3 Changed 8 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from assigned to closed

Merged in Sage 3.4.1.rc3.

Cheers,

Michael

Note: See TracTickets for help on using tickets.