#14610: Energy function for level zero LS paths for all types
-------------------------------------+-------------------------------------
       Reporter:  mshimo             |        Owner:  mshimo
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-5.12
      Component:  combinatorics      |   Resolution:
       Keywords:  crystal graph,     |    Merged in:
  days49                             |    Reviewers:  Anne Schilling, Mark
        Authors:  Mark Shimozono,    |  Shimozono, Ben Salisbury
  Anne Schilling                     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by jdemeyer):

 * status:  positive_review => needs_work


Comment:

 This `AssertionError` should be changed into a `ValueError` or
 `TypeError`:
 {{{
 sage: RootSystem(['D',2]).root_lattice().simple_root(1).is_short_root()
 ---------------------------------------------------------------------------
 AssertionError                            Traceback (most recent call
 last)
 <ipython-input-25-e961de76571c> in <module>()
 ----> 1
 
RootSystem(['D',Integer(2)]).root_lattice().simple_root(Integer(1)).is_short_root()

 /mazur/release/merger/sage-5.12.beta1/local/lib/python2.7/site-
 packages/sage/combinat/root_system/root_lattice_realizations.pyc in
 is_short_root(self)
    3290             """
    3291             ct = self.parent().cartan_type()
 -> 3292             assert ct.is_irreducible()
    3293             if not ct.is_finite():
    3294                 raise NotImplementedError, "Implemented only for
 irreducible finite root systems"

 AssertionError:
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/14610#comment:12>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to