Skip to content

Commit

Permalink
Runs formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Dec 18, 2024
1 parent 0d4e9a6 commit b1924c4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/groups/group.jl
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,7 @@ function Identity(
::TraitList{<:IsGroupManifold{O}},
::AbstractDecoratorManifold,
) where {O<:AbstractGroupOperation}
Base.depwarn(
_dep_warn_group *
"\n`Identity` will move and keep its name.",
:Idenity,
)
Base.depwarn(_dep_warn_group * "\n`Identity` will move and keep its name.", :Idenity)

Check warning on line 252 in src/groups/group.jl

View check run for this annotation

Codecov / codecov/patch

src/groups/group.jl#L252

Added line #L252 was not covered by tests
return Identity{O}()
end
Identity(::O) where {O<:AbstractGroupOperation} = Identity(O)
Expand All @@ -273,7 +269,10 @@ points are not represented by arrays.
identity_element(G::AbstractDecoratorManifold)
@trait_function identity_element(G::AbstractDecoratorManifold)
function identity_element(::TraitList{<:IsGroupManifold}, G::AbstractDecoratorManifold)
Base.depwarn(_dep_warn_group * "\n`identity_element` will move and keep its name.", :identity_element)
Base.depwarn(

Check warning on line 272 in src/groups/group.jl

View check run for this annotation

Codecov / codecov/patch

src/groups/group.jl#L272

Added line #L272 was not covered by tests
_dep_warn_group * "\n`identity_element` will move and keep its name.",
:identity_element,
)
BG = base_group(G)
q = allocate_result(BG, identity_element)
return identity_element!(BG, q)
Expand Down Expand Up @@ -617,10 +616,7 @@ element of ``\mathcal{G}``.
inv(::AbstractDecoratorManifold, ::Any...)
@trait_function Base.inv(G::AbstractDecoratorManifold, p)
function Base.inv(::TraitList{<:IsGroupManifold}, G::AbstractDecoratorManifold, p)
Base.depwarn(
_dep_warn_group * "\n`inv` is moved and keeps its name.",
:inv,
)
Base.depwarn(_dep_warn_group * "\n`inv` is moved and keeps its name.", :inv)

Check warning on line 619 in src/groups/group.jl

View check run for this annotation

Codecov / codecov/patch

src/groups/group.jl#L619

Added line #L619 was not covered by tests
q = allocate_result(G, inv, p)
BG = base_group(G)
return inv!(BG, q, p)
Expand Down Expand Up @@ -915,7 +911,10 @@ function translate(
q,
conv::ActionDirectionAndSide,
)
Base.depwarn(_dep_warn_group * "\n`translate` is discontinued – use `compose` instead.", :translate)
Base.depwarn(

Check warning on line 914 in src/groups/group.jl

View check run for this annotation

Codecov / codecov/patch

src/groups/group.jl#L914

Added line #L914 was not covered by tests
_dep_warn_group * "\n`translate` is discontinued – use `compose` instead.",
:translate,
)
BG = base_group(G)
return compose(BG, _action_order(BG, p, q, conv)...)
end
Expand Down Expand Up @@ -968,7 +967,8 @@ function inverse_translate(
conv::ActionDirectionAndSide,
)
Base.depwarn(

Check warning on line 969 in src/groups/group.jl

View check run for this annotation

Codecov / codecov/patch

src/groups/group.jl#L969

Added line #L969 was not covered by tests
_dep_warn_group * "\n`inverse_translate` is discontinued – use `compose` with the `inv` instead.",
_dep_warn_group *
"\n`inverse_translate` is discontinued – use `compose` with the `inv` instead.",
:inverse_translate,
)
BG = base_group(G)
Expand Down
6 changes: 5 additions & 1 deletion src/groups/power_group.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ group manifolds with an [`Identity`](@ref) element.
PowerGroup(manifold::AbstractPowerManifold)
"""
function PowerGroup(manifold::AbstractPowerManifold)
Base.depwarn(_dep_warn_group*"\n `PowerGroup` will be named to `PowerLiegroup` and its argument will be a Lie group instead of a manifold.", :PowerGroup)
Base.depwarn(

Check warning on line 36 in src/groups/power_group.jl

View check run for this annotation

Codecov / codecov/patch

src/groups/power_group.jl#L36

Added line #L36 was not covered by tests
_dep_warn_group *
"\n `PowerGroup` will be named to `PowerLiegroup` and its argument will be a Lie group instead of a manifold.",
:PowerGroup,
)
if !is_group_manifold(manifold.manifold)
error("All powered manifold must be or decorate a group.")
end
Expand Down

0 comments on commit b1924c4

Please sign in to comment.