diff --git a/Project.toml b/Project.toml index d662fa2..52fbbad 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "HCIToolbox" uuid = "b6cd55e5-4d02-4e12-b82c-005f67e784bf" authors = ["Miles Lucas "] -version = "0.5.1" +version = "0.5.2" [deps] Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" diff --git a/src/inject.jl b/src/inject.jl index 820eb64..7d1a851 100644 --- a/src/inject.jl +++ b/src/inject.jl @@ -139,6 +139,7 @@ end function (gen::CubeGenerator{<:AnnulusView})(base::AbstractMatrix{T}, pos; A=one(T)) where T ctr = reverse(center(gen.cube)[2:3]) Threads.@threads for tidx in axes(base, 1) + tidx′ = gen.cube.indices[1][tidx] location = parse_position(pos, ctr, gen.angles[tidx′]) tform = Translation(center(gen.psf) - location) for (pidx, pidx′) in zip(axes(base, 2), gen.cube.indices[2])