add groupname(N::Int) signature

This commit is contained in:
kalmarek 2017-12-21 13:02:00 +01:00
parent 14cfc06b7e
commit 3e1ec02c8c
2 changed files with 16 additions and 11 deletions

View File

@ -72,7 +72,9 @@ end
function groupname(parsed_args) function groupname(parsed_args)
N = parsed_args["N"] N = parsed_args["N"]
return "oSAutF$(N)", N return groupname(N), N
end end
groupname(N::Int) = "oSAutF$(N)"
end # of module SAutFNs end # of module SAutFNs

23
SLNs.jl
View File

@ -105,17 +105,20 @@ function groupname(parsed_args)
p = parsed_args["p"] p = parsed_args["p"]
X = parsed_args["X"] X = parsed_args["X"]
if p == 0 return groupname(N, p, X), N
if X end
name = "oSL$(N)Z⟨X⟩"
else
name = "oSL$(N)Z"
end
else
name = "oSL$(N)_$p"
end
return name, N function groupname(N, p=0, X=false)
if p == 0
if X
name = "oSL$(N)Z⟨X⟩"
else
name = "oSL$(N)Z"
end
else
name = "oSL$(N)_$p"
end
return name
end end
end # of module SLNs end # of module SLNs