one liner for Id. TODO: fix by multiple dispatch

This commit is contained in:
kalmar 2017-06-22 13:36:15 +02:00
parent dbc74b212e
commit d4661d762a

View File

@ -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")