Skip to content

Commit

Permalink
[FTheoryTools] Blowup remembers all attributes of original model
Browse files Browse the repository at this point in the history
  • Loading branch information
HereAround committed Dec 8, 2023
1 parent 7ccaeae commit 32b7e89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
14 changes: 8 additions & 6 deletions experimental/FTheoryTools/src/TateModels/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Construction over concrete base may lead to singularity enhancement. Consider co
Global Tate model over a concrete base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> blow_up(t, ["x", "y", "x1"]; coordinate_name = "e1")
Partially resolved global Tate model over a concrete base
Partially resolved global Tate model over a concrete base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
```
"""
function blow_up(t::GlobalTateModel, ideal_gens::Vector{String}; coordinate_name::String = "e")
Expand Down Expand Up @@ -148,11 +148,13 @@ function blow_up(t::GlobalTateModel, I::MPolyIdeal; coordinate_name::String = "e
# Change/Fix? We may want to provide not only output that remains true forever but also output, while the internals may change?
model = GlobalTateModel(ais[1], ais[2], ais[3], ais[4], ais[5], new_pt, base_space(t), new_ambient_space)

# Set attributes
set_attribute!(model, :base_fully_specified, true)
set_attribute!(model, :partially_resolved, true)
if has_attribute(t, :explicit_model_sections)
set_attribute!(model, :explicit_model_sections => get_attribute(t, :explicit_model_sections))
# Copy known attributes from old model and overwrite as appropriate
model_attributes = t.__attrs
for (key, value) in model_attributes
set_attribute!(model, key, value)
end
set_attribute!(model, :partially_resolved, true)

# Return the model
return model
end
12 changes: 7 additions & 5 deletions experimental/FTheoryTools/src/WeierstrassModels/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ function blow_up(w::WeierstrassModel, I::MPolyIdeal; coordinate_name::String = "
# Change/Fix? We may want to provide not only output that remains true forever but also output, while the internals may change?
model = WeierstrassModel(f, g, new_pw, base_space(w), new_ambient_space)

# Set attributes
set_attribute!(model, :base_fully_specified, true)
set_attribute!(model, :partially_resolved, true)
if has_attribute(w, :explicit_model_sections)
set_attribute!(model, :explicit_model_sections => get_attribute(w, :explicit_model_sections))
# Copy known attributes from old model and overwrite as appropriate
model_attributes = w.__attrs
for (key, value) in model_attributes
set_attribute!(model, key, value)
end
set_attribute!(model, :partially_resolved, true)

# Return the partially resolved model
return model
end

0 comments on commit 32b7e89

Please sign in to comment.