Skip to content

Commit

Permalink
prevent breaking oscar
Browse files Browse the repository at this point in the history
  • Loading branch information
StevellM committed Feb 24, 2023
1 parent ed86f4f commit 1d82f9e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@

@deprecate automorphisms(x::LocalField, y::Union{FlintPadicField, FlintQadicField, LocalField}) automorphism_list(x, y)

# Deprecated during 0.17.*
# Deprecated during 0.18.*

@deprecate orthogonal_sum(x::T, y::T) where T <: Union{TorQuadModule, ZLat, AbstractSpace, ZGenus, ZpGenus, HermGenus, HermLocalGenus, QuadGenus, QuadLocalGenus, JorDec, LocalQuadSpaceCls, QuadSpaceCls} direct_sum(x, y)
@deprecate orthogonal_sum(x::T, y::T) where T <: Union{AbstractSpace, ZGenus, ZpGenus, HermGenus, HermLocalGenus, QuadGenus, QuadLocalGenus, JorDec, LocalQuadSpaceCls, QuadSpaceCls} direct_sum(x, y)

# Things that moved to Nemo

Expand Down
7 changes: 7 additions & 0 deletions src/QuadForm/Quad/ZLattices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@ function orthogonal_submodule(L::ZLat, S::ZLat)
return lattice(V, Ks*B)
end

### Deprecated: should be removed once fixed in Oscar!!

function orthogonal_sum(x::ZLat, y::ZLat)
z, inj = direct_sum(x, y)
return z, inj[1], inj[2]
end

################################################################################
#
# String I/O
Expand Down
10 changes: 10 additions & 0 deletions src/QuadForm/Torsion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,16 @@ end

biproduct(x::Vararg{TorQuadModule}) = biproduct(collect(x))

### Deprecated: should be removed once fixed in Oscar!!

function orthogonal_sum(x::TorQuadModule, y::TorQuadModule)
z, inj = direct_sum(x, y)
return z, inj[1], inj[2]
end
export orthogonal_sum

_orthogonal_sum_with_injections_and_projections(x::Vector{TorQuadModule}) = biproduct(x)

###############################################################################
#
# Primary/elementary torsion quadratic module
Expand Down

0 comments on commit 1d82f9e

Please sign in to comment.