#7692: update the sloane OEIS database to the latest version; it is a little out
of date.
---------------------------------+------------------------------------------
   Reporter:  was                |       Owner:  tbd       
       Type:  enhancement        |      Status:  needs_work
   Priority:  minor              |   Milestone:  sage-4.3.1
  Component:  optional packages  |    Keywords:            
Work_issues:                     |      Author:            
   Upstream:  N/A                |    Reviewer:            
     Merged:                     |  
---------------------------------+------------------------------------------
Changes (by jsp):

  * status:  needs_review => needs_work


Comment:

 The package installed ok, but sloane.py needs work:


 {{{
 sage: SloaneEncyclopedia.load()
 ERROR: An unexpected error occurred while tokenizing input
 The following traceback may be corrupted or invalid
 The error message is: ('EOF in multi-line statement', (48, 0))

 ---------------------------------------------------------------------------
 IndexError                                Traceback (most recent call
 last)

 /home/jaap/.sage/temp/vrede.jaapspies.nl/14953/_home_jaap__sage_init_sage_0.py
 in <module>()

 /home/jaap/downloads/sage-4.3.rc0/local/lib/python2.6/site-
 packages/sage/databases/sloane.pyc in load(self)
     246                 seqnum = int(m.group('num'));
     247                 msg = m.group('body').strip();
 --> 248                 self.__data__[seqnum] = [seqnum, None,
 ','+msg+',']
     249         verbose("Finished loading", tm)
     250         self.__loaded__ = True

 IndexError: list assignment index out of range


 }}}

 First of all there are more sequence in the databas:


 {{{
 class SloaneEncyclopediaClass:
     """
     A local copy of the Sloane Online Encyclopedia of Integer Sequences
     that contains only the sequence numbers and the sequences
     themselves.
     """
     def __init__(self):
         """
         Initialize the database but do not load any of the data.
         """
         self.__file__ = "%s/data/sloane/sloane-
 oeis.bz2"%os.environ["SAGE_ROOT"]
         self.__arraysize__ = 114751 # maximum sequence number + 1
         self.__loaded__ = False


 }}}


 Jaap

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7692#comment:3>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to