From 17a04d7547402cdab400ca92f8b71b51b38445ed Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Wed, 11 Dec 2013 13:01:34 -0800 Subject: [PATCH] Added deprecatd classes back with warnings. --- .../combinat/rigged_configurations/all.py | 2 ++ .../rigged_configurations.py | 22 +++++++++++++++++++ .../tensor_product_kr_tableaux.py | 17 ++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/src/sage/combinat/rigged_configurations/all.py b/src/sage/combinat/rigged_configurations/all.py index dbb3b62c4ba..2388f83e019 100644 --- a/src/sage/combinat/rigged_configurations/all.py +++ b/src/sage/combinat/rigged_configurations/all.py @@ -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 diff --git a/src/sage/combinat/rigged_configurations/rigged_configurations.py b/src/sage/combinat/rigged_configurations/rigged_configurations.py index f7e977465d6..3786c237d1d 100644 --- a/src/sage/combinat/rigged_configurations/rigged_configurations.py +++ b/src/sage/combinat/rigged_configurations/rigged_configurations.py @@ -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. + ( + (/) + + (/) + ,) + """ + 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 + diff --git a/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux.py b/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux.py index 39fb54ae4af..9cd0a0c388b 100644 --- a/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux.py +++ b/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux.py @@ -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