Skip to content

Commit

Permalink
[FTheoryTools] Remove @attr for fields of types
Browse files Browse the repository at this point in the history
  • Loading branch information
HereAround committed May 8, 2023
1 parent 3bdd332 commit b62f957
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions experimental/FTheoryTools/src/TateModels/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Global Tate model over a not fully specified base
julia> tate_section_a1(t);
```
"""
@attr MPolyRingElem{QQFieldElem} tate_section_a1(t::GlobalTateModel) = t.tate_a1
tate_section_a1(t::GlobalTateModel) = t.tate_a1


@doc raw"""
Expand All @@ -36,7 +36,7 @@ Global Tate model over a not fully specified base
julia> tate_section_a2(t);
```
"""
@attr MPolyRingElem{QQFieldElem} tate_section_a2(t::GlobalTateModel) = t.tate_a2
tate_section_a2(t::GlobalTateModel) = t.tate_a2


@doc raw"""
Expand All @@ -51,7 +51,7 @@ Global Tate model over a not fully specified base
julia> tate_section_a3(t);
```
"""
@attr MPolyRingElem{QQFieldElem} tate_section_a3(t::GlobalTateModel) = t.tate_a3
tate_section_a3(t::GlobalTateModel) = t.tate_a3


@doc raw"""
Expand All @@ -66,7 +66,7 @@ Global Tate model over a not fully specified base
julia> tate_section_a4(t);
```
"""
@attr MPolyRingElem{QQFieldElem} tate_section_a4(t::GlobalTateModel) = t.tate_a4
tate_section_a4(t::GlobalTateModel) = t.tate_a4


@doc raw"""
Expand All @@ -81,7 +81,7 @@ Global Tate model over a not fully specified base
julia> tate_section_a6(t);
```
"""
@attr MPolyRingElem{QQFieldElem} tate_section_a6(t::GlobalTateModel) = t.tate_a6
tate_section_a6(t::GlobalTateModel) = t.tate_a6


#####################################################
Expand All @@ -100,7 +100,7 @@ Global Tate model over a not fully specified base
julia> tate_polynomial(t);
```
"""
@attr MPolyRingElem{QQFieldElem} tate_polynomial(t::GlobalTateModel) = t.tate_polynomial
tate_polynomial(t::GlobalTateModel) = t.tate_polynomial


#####################################################
Expand All @@ -120,7 +120,7 @@ julia> base_space(t)
Scheme of a toric variety with fan spanned by RayVector{QQFieldElem}[[1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 1], [0, 1, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0], [0, 0, 0, 1, 0, 0]]
```
"""
@attr AbsCoveredScheme function base_space(t::GlobalTateModel)
function base_space(t::GlobalTateModel)
base_fully_specified(t) || @vprint :GlobalTateModel 1 "Base space was not fully specified. Returning AUXILIARY base space.\n"
return t.base_space
end
Expand All @@ -139,7 +139,7 @@ julia> ambient_space(t)
Scheme of a toric variety with fan spanned by RayVector{QQFieldElem}[[1, 0, 0, 0, 0, 0, -2, -3], [0, 0, 0, 0, 1, 0, -2, -3], [0, 0, 0, 0, 0, 1, -2, -3], [0, 1, 0, 0, 0, 0, -2, -3], [0, 0, 1, 0, 0, 0, -2, -3], [0, 0, 0, 1, 0, 0, -2, -3], [0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, -1, -3//2]]
```
"""
@attr AbsCoveredScheme function ambient_space(t::GlobalTateModel)
function ambient_space(t::GlobalTateModel)
base_fully_specified(t) || @vprint :GlobalTateModel 1 "Base space was not fully specified. Returning AUXILIARY ambient space.\n"
return t.ambient_space
end
Expand Down
10 changes: 5 additions & 5 deletions experimental/FTheoryTools/src/WeierstrassModels/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Global Weierstrass model over a not fully specified base
julia> weierstrass_section_f(w);
```
"""
@attr MPolyRingElem{QQFieldElem} weierstrass_section_f(w::GlobalWeierstrassModel) = w.weierstrass_f
weierstrass_section_f(w::GlobalWeierstrassModel) = w.weierstrass_f


@doc raw"""
Expand All @@ -38,7 +38,7 @@ Global Weierstrass model over a not fully specified base
julia> weierstrass_section_g(w);
```
"""
@attr MPolyRingElem{QQFieldElem} weierstrass_section_g(w::GlobalWeierstrassModel) = w.weierstrass_g
weierstrass_section_g(w::GlobalWeierstrassModel) = w.weierstrass_g


#####################################################
Expand All @@ -57,7 +57,7 @@ Global Weierstrass model over a not fully specified base
julia> weierstrass_polynomial(w);
```
"""
@attr MPolyRingElem{QQFieldElem} weierstrass_polynomial(w::GlobalWeierstrassModel) = w.weierstrass_polynomial
weierstrass_polynomial(w::GlobalWeierstrassModel) = w.weierstrass_polynomial


#####################################################
Expand All @@ -76,7 +76,7 @@ Global Weierstrass model over a not fully specified base
julia> base_space(w)
Scheme of a toric variety with fan spanned by RayVector{QQFieldElem}[[1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 1], [0, 1, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0], [0, 0, 0, 1, 0, 0]]
"""
@attr AbsCoveredScheme function base_space(w::GlobalWeierstrassModel)
function base_space(w::GlobalWeierstrassModel)
base_fully_specified(w) || @vprint :GlobalWeierstrassModel 1 "Base space was not fully specified. Returning AUXILIARY base space.\n"
return w.base_space
end
Expand All @@ -95,7 +95,7 @@ julia> ambient_space(w)
Scheme of a toric variety with fan spanned by RayVector{QQFieldElem}[[1, 0, 0, 0, 0, 0, -2, -3], [0, 0, 0, 0, 1, 0, -2, -3], [0, 0, 0, 0, 0, 1, -2, -3], [0, 1, 0, 0, 0, 0, -2, -3], [0, 0, 1, 0, 0, 0, -2, -3], [0, 0, 0, 1, 0, 0, -2, -3], [0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, -1, -3//2]]
```
"""
@attr AbsCoveredScheme function ambient_space(w::GlobalWeierstrassModel)
function ambient_space(w::GlobalWeierstrassModel)
base_fully_specified(w) || @vprint :GlobalWeierstrassModel 1 "Base space was not fully specified. Returning AUXILIARY ambient space.\n"
return w.ambient_space
end
Expand Down

0 comments on commit b62f957

Please sign in to comment.