#20565: Fix LinearCode.wtdist_gap method
-------------------------------------+-------------------------------------
       Reporter:  arpitdm            |        Owner:  arpitdm
           Type:  defect             |       Status:  needs_work
       Priority:  minor              |    Milestone:  sage-7.3
      Component:  coding theory      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Arpit Merchant     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/arpitdm/fix_wtdist_gap_method    |  111426739cd1bb4eb395117ff5000d9aafdc23ac
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by arpitdm):

 One more thing. We need to have the original wtdist_gap documentation
 also. The doctest there fails with the following message:
 {{{
 File "src/sage/coding/linear_code.py", line 315, in
 sage.coding.linear_code.wtdist_gap
 Failed example:
     sage.coding.linear_code.wtdist_gap(Gstr, 7, F)
 Expected:
     DeprecationWarning: wtdist_gap is now deprecated. Please use
 AbstractLinearCode._spectrum_from_gap instead.
     See http://trac.sagemath.org/20565 for details.
     [1, 0, 0, 7, 7, 0, 0, 1]
 Got:
     doctest:1: DeprecationWarning: wtdist_gap is now deprecated. Please
 use AbstractLinearCode._spectrum_from_gap instead.
     See http://trac.sagemath.org/20565 for details.
     [1, 0, 0, 7, 7, 0, 0, 1]
 }}}
 What is the correct way to add the deprecation warning to the doctest?

 When I run the wtdist_gap method, it gives a bunch of other deprecation
 warnings. Are these fine or do I need to change anything here?
 {{{
 sage: sage.coding.linear_code.wtdist_gap(Gstr, 7, F)
 /home/arpit/Documents/GSOC_16/sage-7.1/src/bin/sage-ipython:1:
 DeprecationWarning: wtdist_gap is now deprecated. Please use
 AbstractLinearCode._spectrum_from_gap instead.
 See http://trac.sagemath.org/20565 for details.
   #!/usr/bin/env python
 /home/arpit/Documents/GSOC_16/sage-7.1/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:92: DeprecationWarning:
 DisplayFormatter._ipython_display_formatter_default is deprecated: use
 @default decorator instead.
   def _ipython_display_formatter_default(self):
 /home/arpit/Documents/GSOC_16/sage-7.1/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:98: DeprecationWarning:
 DisplayFormatter._formatters_default is deprecated: use @default decorator
 instead.
   def _formatters_default(self):
 /home/arpit/Documents/GSOC_16/sage-7.1/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:677: DeprecationWarning:
 PlainTextFormatter._deferred_printers_default is deprecated: use @default
 decorator instead.
   def _deferred_printers_default(self):
 /home/arpit/Documents/GSOC_16/sage-7.1/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:669: DeprecationWarning:
 PlainTextFormatter._singleton_printers_default is deprecated: use @default
 decorator instead.
   def _singleton_printers_default(self):
 /home/arpit/Documents/GSOC_16/sage-7.1/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:672: DeprecationWarning:
 PlainTextFormatter._type_printers_default is deprecated: use @default
 decorator instead.
   def _type_printers_default(self):
 /home/arpit/Documents/GSOC_16/sage-7.1/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:669: DeprecationWarning:
 PlainTextFormatter._singleton_printers_default is deprecated: use @default
 decorator instead.
   def _singleton_printers_default(self):
 /home/arpit/Documents/GSOC_16/sage-7.1/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:672: DeprecationWarning:
 PlainTextFormatter._type_printers_default is deprecated: use @default
 decorator instead.
   def _type_printers_default(self):
 /home/arpit/Documents/GSOC_16/sage-7.1/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:677: DeprecationWarning:
 PlainTextFormatter._deferred_printers_default is deprecated: use @default
 decorator instead.
   def _deferred_printers_default(self):
 [1, 0, 0, 7, 7, 0, 0, 1]
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/20565#comment:15>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to