Skip to content

Commit

Permalink
Fix axes for RegularGridPositions (#72)
Browse files Browse the repository at this point in the history
Add axes to Base

Co-authored-by: Jonas Schumacher <[email protected]>
  • Loading branch information
jonschumacher and Jonas Schumacher authored Mar 20, 2024
1 parent 6cec732 commit b478ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Positions/Positions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function range(grid::RegularGridPositions, dim::Int)
end
end
ndims(grid::RegularGridPositions) = length(grid.shape)
axes(grid::RegularGridPositions) = tuple([range(grid, i) for i in 1:ndims(grid)]...)
Base.axes(grid::RegularGridPositions) = tuple([range(grid, i) for i in 1:ndims(grid)]...)

RegularGridPositions(shape, fov, center) = RegularGridPositions(shape, fov, center, ones(Int,length(shape)))

Expand Down

0 comments on commit b478ef7

Please sign in to comment.