-
Errors about properties like
timedimshould have self-explanatory messages, but be aware that switching to the recommendedimg = AxisArray(A, :y, :x, :time)may require other changes in your code. For example, rather thanview(img, "t", t)you should usetax = timeaxis(img); view(img, tax(t)). (The new API has the advantage of being inferrable and thus can be used in performance-critical applications.) -
MethodError: no method matching getindex(::Tuple{Int64,Int64,Int64}, ::Tuple{Int64,Int64})in conjunction withcoords_spatial: the return type is now a tuple rather than an array. You can use[coords_spatial(img)...]to get an array, although in some cases you may prefer to use the tuple directly. For certain applications the tuple improves inferrability, for examplesize(img, coords_spatial(img)...)now returns a tuple of inferrable length, which is helpful for writing type-stable algorithms. -
padarraynow returns arrays with unconventional indices: if you pad a 1-dimensional array by 3 elements at the beginning and end, the output's indices will be-2:sz+3rather than1:sz+6. If you find it easier to work with arrays that start at 1, you can callparenton the output.