Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 224b1be

Browse files
Remove rename_keyword deprecation warning (6 years old)
1 parent 179ac5e commit 224b1be

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/sage/coding/code_bounds.py

-6
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,9 @@
174174
from sage.arith.misc import is_prime_power
175175
from sage.arith.all import factorial
176176
from sage.functions.all import log, sqrt
177-
from sage.misc.decorators import rename_keyword
178177
from .delsarte_bounds import delsarte_bound_hamming_space, \
179178
delsarte_bound_additive_hamming_space
180179

181-
@rename_keyword(deprecation=6094, method="algorithm")
182180
def codesize_upper_bound(n,d,q,algorithm=None):
183181
r"""
184182
Returns an upper bound on the code size.
@@ -237,7 +235,6 @@ def codesize_upper_bound(n,d,q,algorithm=None):
237235
sub = singleton_upper_bound(n,q,d)
238236
return min([eub,hub,pub,sub])
239237

240-
@rename_keyword(deprecation=6094, method="algorithm")
241238
def dimension_upper_bound(n,d,q,algorithm=None):
242239
r"""
243240
Returns an upper bound for the dimension of a linear code.
@@ -296,7 +293,6 @@ def gilbert_lower_bound(n,q,d):
296293
ans=q**n/volume_hamming(n,q,d-1)
297294
return ans
298295

299-
@rename_keyword(deprecation=6094, method="algorithm")
300296
def plotkin_upper_bound(n,q,d, algorithm=None):
301297
r"""
302298
Returns Plotkin upper bound.
@@ -332,7 +328,6 @@ def plotkin_upper_bound(n,q,d, algorithm=None):
332328
fact = int(fact) + 1
333329
return int(d/( d - t * fact)) * q**(n - fact)
334330

335-
@rename_keyword(deprecation=6094, method="algorithm")
336331
def griesmer_upper_bound(n,q,d,algorithm=None):
337332
r"""
338333
Returns the Griesmer upper bound.
@@ -393,7 +388,6 @@ def griesmer_upper_bound(n,q,d,algorithm=None):
393388
return 0
394389

395390

396-
@rename_keyword(deprecation=6094, method="algorithm")
397391
def elias_upper_bound(n,q,d,algorithm=None):
398392
r"""
399393
Returns the Elias upper bound.

0 commit comments

Comments
 (0)