Ticket #12700: trac_12700-stopgap.patch

File trac_12700-stopgap.patch, 1.2 KB (added by jhpalmieri, 9 years ago)
  • sage/algebras/steenrod/steenrod_algebra.py

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1332197986 25200
    # Node ID af52dba869737b82448cbe0cc52445c988181591
    # Parent  e1462ad1f58951ab6a33fd5bbe74d14714d2412d
    stopgap for trac #11832: broken profile functions for odd primary Steenrod algebras
    
    diff --git a/sage/algebras/steenrod/steenrod_algebra.py b/sage/algebras/steenrod/steenrod_algebra.py
    a b class SteenrodAlgebra_generic(Combinator 
    513513
    514514        std_basis = get_basis_name(basis, p)
    515515        std_profile, std_type = normalize_profile(profile, precision=precision, truncation_type=truncation_type, p=p)
     516        if p > 2 and len(std_profile[0]) + len(std_profile[1]) > 0:
     517            from sage.misc.stopgap import stopgap
     518            stopgap("""Warning: There are bugs for profile functions with the odd primary
     519Steenrod algebra. Defining algebra anyway; use with care.""", 11832)
    516520        return super(SteenrodAlgebra_generic, self).__classcall__(self, p=p, basis=std_basis, profile=std_profile, truncation_type=std_type)
    517521
    518522    def __init__(self, p=2, basis='milnor', **kwds):