one liner for Id. TODO: fix by multiple dispatch
This commit is contained in:
parent
dbc74b212e
commit
d4661d762a
@ -161,11 +161,10 @@ function compute_orbit_data{T<:GroupElem}(logger, name::String, G::Nemo.Group, S
|
||||
isdir(name) || mkdir(name)
|
||||
|
||||
info(logger, "Generating ball of radius $(2*radius)")
|
||||
if isa(G, Nemo.Ring)
|
||||
Id = one(G)
|
||||
else
|
||||
Id = G()
|
||||
end
|
||||
|
||||
# TODO: Fix that by multiple dispatch?
|
||||
Id = (isa(G, Nemo.Ring) ? one(G) : G())
|
||||
|
||||
@time E4, sizes = Groups.generate_balls(S, Id, radius=2*radius);
|
||||
info(logger, "Balls of sizes $sizes.")
|
||||
info(logger, "Reverse dict")
|
||||
|
Loading…
Reference in New Issue
Block a user