Weirdly is seems as though the filename is being cut off before the end. This seems to happen at the same point whether I'm using double backslashes or single forward-slashes in the file name.
filename = "C:\\Users\\Alexander Collins\\Desktop\\Code\\test_image.tif"
stack = TiffImages.load(filename, mmap = true)
942×1072×1 TiffImages.DenseTaggedImage{Gray{Normed{UInt16,16}},3,UInt32,TiffImages.DiskTaggedImage{Gray{Normed{UInt16,16}},UInt32,Array{Gray{Normed{UInt16,16}},2}}}:
[:, :, 1] =
Error showing value of type TiffImages.DenseTaggedImage{Gray{Normed{UInt16,16}},3,UInt32,TiffImages.DiskTaggedImage{Gray{Normed{UInt16,16}},UInt32,Array{Gray{Normed{UInt16,16}},2}}}:
ERROR: SystemError: opening file "C:\\Users\\Alexande": No such file or directory
Stacktrace:
[1] systemerror(::String, ::Int32; extrainfo::Nothing) at .\error.jl:168
[2] #systemerror#48 at .\error.jl:167 [inlined]
[3] systemerror at .\error.jl:167 [inlined]
[4] open(::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing) at .\iostream.jl:284
[5] open at .\iostream.jl:273 [inlined]
[6] getindex(::TiffImages.DiskTaggedImage{Gray{Normed{UInt16,16}},UInt32,Array{Gray{Normed{UInt16,16}},2}}, ::Int64, ::Int64, ::Int64) at C:\Users\Alexander Collins\.julia\packages\TiffImages\XpHUY\src\types\mmap.jl:58
[7] getindex at C:\Users\Alexander Collins\.julia\packages\TiffImages\XpHUY\src\types\dense.jl:28 [inlined]
[8] getindex at .\subarray.jl:257 [inlined]
[9] isassigned(::SubArray{Gray{Normed{UInt16,16}},2,TiffImages.DenseTaggedImage{Gray{Normed{UInt16,16}},3,UInt32,TiffImages.DiskTaggedImage{Gray{Normed{UInt16,16}},UInt32,Array{Gray{Normed{UInt16,16}},2}}},Tuple{Base.OneTo{Int64},Base.OneTo{Int64},Int64},false},
::Int64, ::Int64) at .\abstractarray.jl:408
[10] alignment(::IOContext{REPL.Terminals.TTYTerminal}, ::SubArray{Gray{Normed{UInt16,16}},2,TiffImages.DenseTaggedImage{Gray{Normed{UInt16,16}},3,UInt32,TiffImages.DiskTaggedImage{Gray{Normed{UInt16,16}},UInt32,Array{Gray{Normed{UInt16,16}},2}}},Tuple{Base.OneTo{Int64},Base.OneTo{Int64},Int64},false}, ::Array{Int64,1}, ::Array{Int64,1}, ::Int64, ::Int64, ::Int64) at .\arrayshow.jl:67
[11] print_matrix(::IOContext{REPL.Terminals.TTYTerminal}, ::SubArray{Gray{Normed{UInt16,16}},2,TiffImages.DenseTaggedImage{Gray{Normed{UInt16,16}},3,UInt32,TiffImages.DiskTaggedImage{Gray{Normed{UInt16,16}},UInt32,Array{Gray{Normed{UInt16,16}},2}}},Tuple{Base.OneTo{Int64},Base.OneTo{Int64},Int64},false}, ::String, ::String, ::String, ::String, ::String, ::String, ::Int64, ::Int64) at .\arrayshow.jl:196
[12] print_matrix(::IOContext{REPL.Terminals.TTYTerminal}, ::SubArray{Gray{Normed{UInt16,16}},2,TiffImages.DenseTaggedImage{Gray{Normed{UInt16,16}},3,UInt32,TiffImages.DiskTaggedImage{Gray{Normed{UInt16,16}},UInt32,Array{Gray{Normed{UInt16,16}},2}}},Tuple{Base.OneTo{Int64},Base.OneTo{Int64},Int64},false}) at .\arrayshow.jl:169
[13] show_nd(::IOContext{REPL.Terminals.TTYTerminal}, ::TiffImages.DenseTaggedImage{Gray{Normed{UInt16,16}},3,UInt32,TiffImages.DiskTaggedImage{Gray{Normed{UInt16,16}},UInt32,Array{Gray{Normed{UInt16,16}},2}}}, ::typeof(Base.print_matrix), ::Bool) at .\arrayshow.jl:304
[14] print_array at .\arrayshow.jl:318 [inlined]
[15] show(::IOContext{REPL.Terminals.TTYTerminal}, ::MIME{Symbol("text/plain")}, ::TiffImages.DenseTaggedImage{Gray{Normed{UInt16,16}},3,UInt32,TiffImages.DiskTaggedImage{Gray{Normed{UInt16,16}},UInt32,Array{Gray{Normed{UInt16,16}},2}}}) at .\arrayshow.jl:358
[16] display(::REPL.REPLDisplay, ::MIME{Symbol("text/plain")}, ::Any) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:214
[17] display(::REPL.REPLDisplay, ::Any) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:218
[18] display(::Any) at .\multimedia.jl:328
[19] #invokelatest#1 at .\essentials.jl:710 [inlined]
[20] invokelatest at .\essentials.jl:709 [inlined]
[21] print_response(::IO, ::Any, ::Bool, ::Bool, ::Any) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:238
[22] print_response(::REPL.AbstractREPL, ::Any, ::Bool, ::Bool) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:223
[23] (::REPL.var"#do_respond#54"{Bool,Bool,Atom.var"#246#247",REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:822
[24] #invokelatest#1 at .\essentials.jl:710 [inlined]
[25] invokelatest at .\essentials.jl:709 [inlined]
[26] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\LineEdit.jl:2355
[27] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:1144
[28] (::REPL.var"#38#42"{REPL.LineEditREPL,REPL.REPLBackendRef})() at .\task.jl:356