{"action":"closed","issue":{"url":"https://api.github.com/repos/davidavdav/NamedArrays.jl/issues/33","repository_url":"https://api.github.com/repos/davidavdav/NamedArrays.jl","labels_url":"https://api.github.com/repos/davidavdav/NamedArrays.jl/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/davidavdav/NamedArrays.jl/issues/33/comments","events_url":"https://api.github.com/repos/davidavdav/NamedArrays.jl/issues/33/events","html_url":"https://github.com/davidavdav/NamedArrays.jl/issues/33","id":169471589,"number":33,"title":"(Pretty) print arrays with second dimension of size 1","user":{"login":"compleconomics","id":15006679,"avatar_url":"https://avatars.githubusercontent.com/u/15006679?v=3","gravatar_id":"","url":"https://api.github.com/users/compleconomics","html_url":"https://github.com/compleconomics","followers_url":"https://api.github.com/users/compleconomics/followers","following_url":"https://api.github.com/users/compleconomics/following{/other_user}","gists_url":"https://api.github.com/users/compleconomics/gists{/gist_id}","starred_url":"https://api.github.com/users/compleconomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/compleconomics/subscriptions","organizations_url":"https://api.github.com/users/compleconomics/orgs","repos_url":"https://api.github.com/users/compleconomics/repos","events_url":"https://api.github.com/users/compleconomics/events{/privacy}","received_events_url":"https://api.github.com/users/compleconomics/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-04T20:55:37Z","updated_at":"2016-08-09T16:05:10Z","closed_at":"2016-08-09T16:05:10Z","body":"Thank you very much for fixing #32. The following problem is most likely closely related to this. \r\n\r\nPrinting simple two-dimensional Named Arrays like\r\n`NamedArray(rand(Int16,1,2))`\r\n`NamedArray(rand(Int16,2,1))`\r\nworks nicely.\r\n\r\nHowever whenever a third or generally higher order dimensions are added, the case of the second dimension having size 1 poses problems. So printing\r\n`NamedArray(rand(Int16,1,2,1))`\r\nworks perfectly, but\r\n`NamedArray(rand(Int16,2,1,1))`\r\ndoes not.\r\n\r\nIn fact, the error message looks similar to #32 : \r\n\r\n> NamedArray(rand(Int16,2,1,1))\r\n2x1x1 Named Array{Int16,3}\r\n[:, :, C=1] =\r\nError showing value of type NamedArrays.NamedArray{Int16,3,Array{Int16,3},Tuple{DataStructures.OrderedDict{ASCIIString,Int64},DataStructures.OrderedDict{ASCIIString,Int64},DataStructures.OrderedDict{ASCIIString,Int64}}}:\r\nERROR: MethodError: `show` has no method matching show(::Base.Terminals.TTYTerminal, ::Array{Int16,2}, ::Int64)\r\nClosest candidates are:\r\n  show(::IO, ::NamedArrays.NamedArray{T,2,AT,DT}, ::Int64)\r\n  show(::IO, ::NamedArrays.NamedArray{T,1,AT,DT}, ::Int64)\r\n  show(::IO, ::AbstractArray{T,N})\r\n  ...\r\n in show at /Users/lh/.julia/v0.4/NamedArrays/src/show.jl:44\r\n in writemime at /Users/lh/.julia/v0.4/NamedArrays/src/show.jl:21\r\n in display at REPL.jl:114\r\n in display at REPL.jl:117\r\n [inlined code] from multimedia.jl:151\r\n in display at multimedia.jl:163\r\n in print_response at REPL.jl:134\r\n in print_response at REPL.jl:121\r\n in anonymous at REPL.jl:624\r\n in run_interface at /Applications/Julia-0.4.6.app/Contents/Resources/julia/lib/julia/sys.dylib\r\n in run_frontend at /Applications/Julia-0.4.6.app/Contents/Resources/julia/lib/julia/sys.dylib\r\n in run_repl at /Applications/Julia-0.4.6.app/Contents/Resources/julia/lib/julia/sys.dylib\r\n in _start at /Applications/Julia-0.4.6.app/Contents/Resources/julia/lib/julia/sys.dylib"}}
{"actor":{"display_login":"davidavdav"}}