Skip to content

Commit e218664

Browse files
yakir12mbauman
authored andcommitted
Update README.md (#133)
In reference to issue #127
1 parent f6be2fb commit e218664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ behaviors.
223223
```julia
224224
B = AxisArray(randn(100,100,100), :x, :y, :z)
225225
Itotal = sumz = 0.0
226-
for iter in eachindex(B) # traverses in storage order for cache efficiency
226+
for iter in CartesianRange(indices(B)) # traverses in storage order for cache efficiency
227227
I = B[iter] # intensity in a single voxel
228228
Itotal += I
229229
sumz += I * iter[axisdim(B, Axis{:z})] # axisdim "looks up" the z dimension

0 commit comments

Comments
 (0)