#15882: Implement a catalog for crystals
-------------------------------------+-------------------------------------
       Reporter:  tscrim             |        Owner:  sage-combinat
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  combinatorics      |   Resolution:
       Keywords:  crystals catalog   |    Merged in:
        Authors:  Travis Scrimshaw   |    Reviewers:  Nathann Cohen, Anne
Report Upstream:  N/A                |  Schilling
         Branch:                     |  Work issues:
  public/combinat/crystals/catalog   |       Commit:
   Dependencies:  #14275 #16027      |  e9dd3a212515da160ef3eac1266d2353e7b9aa77
                                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by aschilling):

 Hi Travis,

 Here are some further comments:

 * The following
 {{{
 +The Littelmann path model also lends itself as a model for to level zero
 +crystals which are bi-infinite. To cut out a slice of these crystals, one
 +can use the direction option in subcrystal::
 }}}
 is not a sentence. Perhaps drop the "to"?

 * When I type
 {{{
 sage: crystals.Tableaux??
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)
 <ipython-input-1-82a3f8368ea9> in <module>()
 ----> 1 get_ipython().magic(u'pinfo2 crystals.Tableaux')

 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
    2163         magic_name, _, magic_arg_s = arg_s.partition(' ')
    2164         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
 -> 2165         return self.run_line_magic(magic_name, magic_arg_s)
    2166
    2167
 #-------------------------------------------------------------------------

 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/interactiveshell.pyc in run_line_magic(self,
 magic_name, line)
    2084                 kwargs['local_ns'] =
 sys._getframe(stack_depth).f_locals
    2085             with self.builtin_trap:
 -> 2086                 result = fn(*args,**kwargs)
    2087             return result
    2088

 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/magics/namespace.pyc in pinfo2(self, parameter_s,
 namespaces)

 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
     189     # but it's overkill for just that one bit of state.
     190     def magic_deco(arg):
 --> 191         call = lambda f, *a, **k: f(*a, **k)
     192
     193         if callable(arg):

 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/magics/namespace.pyc in pinfo2(self, parameter_s,
 namespaces)
      65         '%pinfo2 object' is just a synonym for object?? or
 ??object."""
      66         self.shell._inspect('pinfo', parameter_s, detail_level=1,
 ---> 67                             namespaces=namespaces)
      68
      69     @skip_doctest

 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/interactiveshell.pyc in _inspect(self, meth, oname,
 namespaces, **kw)
    1455                 pmethod(info.obj, oname, formatter)
    1456             elif meth == 'pinfo':
 -> 1457                 pmethod(info.obj, oname, formatter, info, **kw)
    1458             else:
    1459                 pmethod(info.obj, oname)

 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/oinspect.pyc in pinfo(self, obj, oname, formatter,
 info, detail_level)
     558         """
     559         info = self.info(obj, oname=oname, formatter=formatter,
 --> 560                             info=info, detail_level=detail_level)
     561         displayfields = []
     562         def add_fields(fields):

 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/oinspect.pyc in info(self, obj, oname, formatter,
 info, detail_level)
     646                     ds += "\nDocstring:\n" + obj.__doc__
     647         else:
 --> 648             ds = getdoc(obj)
     649             if ds is None:
     650                 ds = '<no docstring>'

 /Applications/sage/local/lib/python2.7/site-
 packages/sage/misc/sageinspect.pyc in sage_getdoc(obj, obj_name,
 embedded_override)
    1505         return ''
    1506
 -> 1507     s = sage.misc.sagedoc.format(str(r),
 embedded=(embedded_override or EMBEDDED_MODE))
    1508
    1509     # If there is a Cython embedded position, it needs to be
 stripped

 /Applications/sage/local/lib/python2.7/site-packages/sage/misc/sagedoc.pyc
 in format(s, embedded)
     565             s = process_mathtt(s)
     566         s = process_extlinks(s, embedded=embedded)
 --> 567         s = detex(s, embedded=embedded)
     568     return embedding_info+s
     569

 /Applications/sage/local/lib/python2.7/site-packages/sage/misc/sagedoc.pyc
 in detex(s, embedded)
     199         s = _rmcmd(s, 'mathrm')
     200         from sagenb.misc.sphinxify import sphinxify
 --> 201         s = sphinxify(s, format='text')
     202         for a,b in math_substitutes:  # do math substitutions
     203             s = s.replace(a,b)

 /Applications/sage/local/lib/python2.7/site-
 packages/sagenb-0.10.8.2-py2.7.egg/sagenb/misc/sphinxify.pyc in
 sphinxify(docstring, format)
     119     old_sys_path = list(sys.path)  # Sphinx modifies sys.path
     120     sphinx_app = Sphinx(srcdir, confdir, srcdir, doctreedir,
 format,
 --> 121                         confoverrides, None, None, True)
     122     sphinx_app.build(None, [rst_name])
     123     sys.path = old_sys_path

 /Applications/sage/local/lib/python2.7/site-
 packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.pyc in __init__(self,
 srcdir, confdir, outdir, doctreedir, buildername, confoverrides, status,
 warning, freshenv, warningiserror, tags)
     112         # load all user-given extension modules
     113         for extension in self.config.extensions:
 --> 114             self.setup_extension(extension)
     115         # the config file itself can be an extension
     116         if self.config.setup:

 /Applications/sage/local/lib/python2.7/site-
 packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.pyc in
 setup_extension(self, extension)
     254         else:
     255             try:
 --> 256                 mod.setup(self)
     257             except VersionRequirementError, err:
     258                 # add the extension name to the version required

 /Applications/sage/local/lib/python2.7/site-
 packages/Sphinx-1.1.2-py2.7.egg/sphinx/ext/mathjax.pyc in setup(app)
      60
      61 def setup(app):
 ---> 62     mathbase_setup(app, (html_visit_math, None),
 (html_visit_displaymath, None))
      63     app.add_config_value('mathjax_path',
      64
 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?'

 /Applications/sage/local/lib/python2.7/site-
 packages/Sphinx-1.1.2-py2.7.egg/sphinx/ext/mathbase.pyc in setup_math(app,
 htmlinlinevisitors, htmldisplayvisitors)
     178         man=(man_visit_math, None),
     179         texinfo=(texinfo_visit_math, None),
 --> 180         html=htmlinlinevisitors)
     181     app.add_node(displaymath,
     182         latex=(latex_visit_displaymath, None),

 /Applications/sage/local/lib/python2.7/site-
 packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.pyc in add_node(self,
 node, **kwds)
     360                 from sphinx.writers.html import HTMLTranslator as
 translator
     361             elif key == 'latex':
 --> 362                 from sphinx.writers.latex import LaTeXTranslator
 as translator
     363             elif key == 'text':
     364                 from sphinx.writers.text import TextTranslator as
 translator

 /Applications/sage/local/lib/python2.7/site-
 packages/Sphinx-1.1.2-py2.7.egg/sphinx/writers/latex.py in <module>()
      21
      22 from sphinx import addnodes
 ---> 23 from sphinx import highlighting
      24 from sphinx.errors import SphinxError
      25 from sphinx.locale import admonitionlabels, versionlabels, _

 /Applications/sage/local/lib/python2.7/site-
 packages/Sphinx-1.1.2-py2.7.egg/sphinx/highlighting.py in <module>()
      22
      23 from sphinx.util.texescape import tex_hl_escape_map_new
 ---> 24 from sphinx.ext import doctest
      25
      26 try:

 /Applications/sage/local/lib/python2.7/site-
 packages/Sphinx-1.1.2-py2.7.egg/sphinx/ext/doctest.py in <module>()
     109
     110
 --> 111 parser = doctest.DocTestParser()
     112
     113 # helper classes

 AttributeError: 'module' object has no attribute 'DocTestParser'
 }}}

 * What is the difference between `crystals.KirillovReshetikhin` and
 `crystals.kirillov_reshetikhin`? Since tab completion does not work, it is
 hard to see from the command line. I suppose
 `crystals.kirillov_reshetikhin` is another subcatalog? It is seems a
 little weird that KirillovReshetikhin does not appear in the list, but
 that
 ` sage.combinat.crystals.catalog.KirillovReshetikhin(cartan_type, r, s,
 model='KN')` appears as documentation on the catalogue site (under
 subcatalogs). It would be better if it appeared when clicking on KR
 crystals.

 So much for now since all this first needs to be fixed.

 Anne

--
Ticket URL: <http://trac.sagemath.org/ticket/15882#comment:35>
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/d/optout.

Reply via email to