-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong show for group algebra #80
Comments
It seems that julia> G = PermGroup(perm"(1,2,3,4,5,6)", perm"(1,2)")
Permutation group on 2 generators generated by
(1,2,3,4,5,6)
(1,2)
julia> g = first(G)
()
julia> show(g)
Perm{UInt16} ()0
julia> show(stdout, MIME"text/plain"(), g)
Perm{UInt16} () |
No, I guess the issue is that we're loosing io context somehow on the way: julia> show(IOContext(stdout), MIME"text/plain"(), s1)
Permutation{Perm{UInt16}, PermGroup{Perm{UInt16}, Transversal{UInt16, Perm{UInt16}}}} (1,2,3)
julia> show(IOContext(stdout, :compact => true), MIME"text/plain"(), s1)
(1,2,3)
julia> show(IOContext(stdout, :compact => true), MIME"text/plain"(), Z)
1·Permutation{Perm{UInt16}, PermGroup{Perm{UInt16}, Transversal{UInt16, Perm{UInt16}}}} () + 1·Permutation{Perm{UInt16}, PermGroup{Perm{UInt16}, Transversal{UInt16, Perm{UInt16}}}} (1,2,3) |
This is not what I see julia> g = collect(G)[3]
(3,4,6)
julia> show(IOContext(stdout, :compact => true), MIME"text/plain"(), g)
Perm{UInt16} (3,4,6)
julia> show(stdout, MIME"text/plain"(), g)
Perm{UInt16} (3,4,6) |
try with |
Indeed, now I get the same, now idea how it gets lost though julia> show(IOContext(stdout, :compact => true, :limit=>true), MIME"text/plain"(), g)
(3,4,6) Maybe because |
hmm, even then it should print just fine: julia> show(IOContext(stdout, :limit=>true), g)
(1,3,2)0 |
current:
expected/was
@blegat you touched the show at latest.
If everything seems ok here, what are the show methods one need to implement in
PermutationGroups
and/orAbstractPermutations.jl
?The text was updated successfully, but these errors were encountered: