unlisted
ubuntu2004# -*- coding: utf-8 -*-1r"""2Test the deprecations from the former tautclass (see https://gitlab.com/modulispaces/admcycles/-/merge_requests/109)::34sage: from admcycles import *5sage: from admcycles.admcycles import *67sage: gamma = StableGraph([1,2],[[1,2],[3]],[(2,3)])8sage: ds1 = decstratum(gamma, kappa=[[1],[]]); ds19Graph : [1, 2] [[1, 2], [3]] [(2, 3)]10Polynomial : (kappa_1)_011sage: ds2 = decstratum(gamma, kappa=[[],[1]]); ds212Graph : [1, 2] [[1, 2], [3]] [(2, 3)]13Polynomial : (kappa_1)_114sage: t = tautclass([ds1, ds2])15sage: (t - gamma.to_tautclass() * kappaclass(1,3,1)).is_zero()16doctest:...: DeprecationWarning: to_tautclass is deprecated. Please use to_tautological_class instead.17See https://gitlab.com/modulispaces/admcycles/-/merge_requests/109 for details.18True1920sage: b = StableGraph([1],[[1,2,3]],[(2,3)]).to_tautclass()21sage: b.toTautbasis()22doctest:...: DeprecationWarning: toTautbasis is deprecated. Please use basis_vector instead.23See https://gitlab.com/modulispaces/admcycles/-/merge_requests/109 for details.24(10, -10, -14)25sage: b.toTautbasis(moduli='ct',r=1)26(0, 0)27sage: c = psiclass(1,2,2)**228sage: for mod in ('st', 'tl', 'ct', 'rt', 'sm'):29....: print(c.toTautbasis(moduli = mod,r=2))30doctest:...: DeprecationWarning: toTautbasis is deprecated. Please use basis_vector instead.31See https://gitlab.com/modulispaces/admcycles/-/merge_requests/109 for details.32(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0)33(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0)34(5/6, -1/6, 1/3, 0, 0)35(1)36()3738sage: a = psiclass(1,2,3)39sage: t = a + a*a40sage: t.gnr_list()41doctest:...: DeprecationWarning: gnr_list is deprecated. Please use degree_list instead.42See https://gitlab.com/modulispaces/admcycles/-/merge_requests/109 for details.43[(2, 3, 1), (2, 3, 2)]4445sage: psiclass(1, 1, 1).toprodtautclass(1, 1)46doctest:...: DeprecationWarning: the arguments 'g' and 'n' of TautologicalClass.toprodtautclass are deprecated.47See https://gitlab.com/modulispaces/admcycles/-/merge_requests/109 for details.48Outer graph : [1] [[1]] []49Vertex 0 :50Graph : [1] [[1]] []51Polynomial : psi_15253sage: psiclass(1, 1, 1).simplify(1, 1, 1)54doctest:...: DeprecationWarning: the arguments 'g, n, r' of TautologicalClass.simplify are deprecated.55See https://gitlab.com/modulispaces/admcycles/-/merge_requests/109 for details.56Graph : [1] [[1]] []57Polynomial : psi_15859sage: a = (QQ['x'].gen() * psiclass(1, 1, 1))60sage: a.coeff_subs(x=1)61doctest:...: DeprecationWarning: coeff_subs is deprecated. Please use subs instead.62See https://gitlab.com/modulispaces/admcycles/-/merge_requests/109 for details.63Graph : [1] [[1]] []64Polynomial : psi_165sage: a66Graph : [1] [[1]] []67Polynomial : psi_168"""697071