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

Commit

Permalink
Added deprecatd classes back with warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Dec 11, 2013
1 parent 538c594 commit 17a04d7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/combinat/rigged_configurations/all.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from rigged_configurations import HighestWeightRiggedConfigurations
from rigged_configurations import RiggedConfigurations
from tensor_product_kr_tableaux import TensorProductOfKirillovReshetikhinTableaux
from tensor_product_kr_tableaux import HighestWeightTensorProductOfKirillovReshetikhinTableaux
from kr_tableaux import KirillovReshetikhinTableaux

22 changes: 22 additions & 0 deletions src/sage/combinat/rigged_configurations/rigged_configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,3 +1772,25 @@ def from_virtual(self, vrc):
return self.element_class(self, partition_list=partitions,
rigging_list=riggings, vacancy_numbers_list=vac_nums)

def HighestWeightRiggedConfigurations(cartan_type, B):
"""
Deprecated in :trac:`13872`. Use instead the attribute
``module_generators`` of :class:`RiggedConfigurations`.
EXAMPLES::
sage: HighestWeightRiggedConfigurations(['A',2,1], [[1,1]])
doctest:...: DeprecationWarning: this class is deprecated.
Use RiggedConfigurations(cartan_type, B).module_generators instead
See http://trac.sagemath.org/13872 for details.
(
(/)
<BLANKLINE>
(/)
,)
"""
from sage.misc.superseded import deprecation
deprecation(13872, 'this class is deprecated. Use RiggedConfigurations('
'cartan_type, B).module_generators instead')
return RiggedConfigurations(cartan_type, B).module_generators

Original file line number Diff line number Diff line change
Expand Up @@ -454,3 +454,20 @@ def tensor_product_of_kirillov_reshetikhin_crystals(self):

TensorProductOfKirillovReshetikhinTableaux.Element = TensorProductOfKirillovReshetikhinTableauxElement

def HighestWeightTensorProductOfKirillovReshetikhinTableaux(cartan_type, B):
"""
Deprecated in :trac:`13872`. Use instead the attribute
``module_generators`` of :class:`TensorProductOfKirillovReshetikhinTableaux`.
EXAMPLES::
sage: HighestWeightTensorProductOfKirillovReshetikhinTableaux(['A',2,1], [[1,1]])
doctest:...: DeprecationWarning: this class is deprecated.
Use TensorProductOfKirillovReshetikhinTableaux(cartan_type, B).module_generators instead
See http://trac.sagemath.org/13872 for details.
Highest weight elements of Tensor product of Kirillov-Reshetikhin tableaux of type ['A', 2, 1] and factor(s) ((1, 1),)
"""
from sage.misc.superseded import deprecation
deprecation(13872, 'this class is deprecated. Use TensorProductOfKirillovReshetikhinTableaux('
'cartan_type, B).module_generators instead')
return TensorProductOfKirillovReshetikhinTableaux(cartan_type, B).module_generators

0 comments on commit 17a04d7

Please sign in to comment.