Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
Integer -> Int
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredclwong committed Apr 30, 2021
1 parent b5bbdc0 commit 22429de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Optical/Emitters/Sources.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,23 @@ 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]
size1 = findmin(lens)[1]
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)
Expand Down

0 comments on commit 22429de

Please sign in to comment.