Skip to content

Commit

Permalink
Remove deprecated use of MPolyElem
Browse files Browse the repository at this point in the history
  • Loading branch information
joschmitt committed Feb 16, 2024
1 parent 3605891 commit ee04277
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ function _construct_literature_model_over_concrete_base(model_dict::Dict{String,
explicit_model_sections["a6"] = map(a6)

# Find defining_section_parametrization
defining_section_parametrization = Dict{String, MPolyElem}()
defining_section_parametrization = Dict{String, MPolyRingElem}()
if !("a1" in vars) || (a1 != eval_poly("a1", parent(a1)))
defining_section_parametrization["a1"] = a1
end
Expand Down Expand Up @@ -328,7 +328,7 @@ function _construct_literature_model_over_concrete_base(model_dict::Dict{String,
explicit_model_sections["g"] = map(g)

# Find defining_section_parametrization
defining_section_parametrization = Dict{String, MPolyElem}()
defining_section_parametrization = Dict{String, MPolyRingElem}()
if !("f" in vars) || (f != eval_poly("f", parent(f)))
defining_section_parametrization["f"] = f
end
Expand Down
2 changes: 1 addition & 1 deletion experimental/FTheoryTools/src/TateModels/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Weierstrass model over a not fully specified base -- SU(5)xU(1) restricted Tate
# Compute parametrization of Weierstrass sections
parametrization = defining_section_parametrization(t)
param_keys = collect(keys(parametrization))
new_defining_section_parametrization = Dict{String, MPolyElem}()
new_defining_section_parametrization = Dict{String, MPolyRingElem}()
if length(param_keys) > 0
# Find ring to evaluate polynomials into
R = parent(parametrization[param_keys[1]])
Expand Down
2 changes: 1 addition & 1 deletion experimental/FTheoryTools/src/TateModels/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function global_tate_model(auxiliary_base_ring::MPolyRing, auxiliary_base_gradin
end

# Compute defining_section_parametrization
defining_section_parametrization = Dict{String, MPolyElem}()
defining_section_parametrization = Dict{String, MPolyRingElem}()
vars_S = [string(k) for k in gens(S)]
if !("a1" in vars_S) || (a1 != eval_poly("a1", parent(a1)))
defining_section_parametrization["a1"] = a1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function weierstrass_model(auxiliary_base_ring::MPolyRing, auxiliary_base_gradin
end

# Compute defining_section_parametrization
defining_section_parametrization = Dict{String, MPolyElem}()
defining_section_parametrization = Dict{String, MPolyRingElem}()
vars_S = [string(k) for k in gens(S)]
if !("f" in vars_S) || (f != eval_poly("f", parent(f)))
defining_section_parametrization["f"] = f
Expand Down
2 changes: 1 addition & 1 deletion src/Rings/mpoly-ideals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@ function flag_pluecker_ideal(F::Field, dimensions::Vector{Int}, n::Int)
L2 = reduce(vcat, [subsets(n, d + 1) for d in dimensions])

R, x = polynomial_ring(F, "x" => L; cached=false)
xdict = Dict{Vector{Int},MPolyElem}([L[i] => x[i] for i in 1:length(L)])
xdict = Dict{Vector{Int},MPolyRingElem}([L[i] => x[i] for i in 1:length(L)])

X = [(a, b) for a in L1, b in L2 if length(b) - length(a) >= 2]

Expand Down

0 comments on commit ee04277

Please sign in to comment.