diff --git a/src/Optical/Emitters/Sources.jl b/src/Optical/Emitters/Sources.jl index 73b5f56eb..70db8a101 100644 --- a/src/Optical/Emitters/Sources.jl +++ b/src/Optical/Emitters/Sources.jl @@ -161,9 +161,9 @@ struct CompositeSource{T} <: AbstractSource{T} transform::Transform{T} sources::Vector{<:AbstractSource} - uniform_length::Integer - total_length::Integer - start_indexes::Vector{Integer} + uniform_length::Int + total_length::Int + start_indexes::Vector{Int} function CompositeSource(transform::Transform{T}, sources::Vector{<:AbstractSource}) where {T<:Real} lens = [length(src) for src in sources] @@ -171,13 +171,13 @@ struct CompositeSource{T} <: AbstractSource{T} size2 = findmax(lens)[1] if (size1 == size2) uniform_length = size1 - start_indexes = Vector{Integer}() + start_indexes = Vector{Int}() total_length = length(sources) * uniform_length # @info "Uniform Length $size1 total=$total_length" else uniform_length = -1 - start_indexes = Vector{Integer}() + start_indexes = Vector{Int}() start = 0 for s in sources push!(start_indexes, start)