Skip to content

Commit

Permalink
seeing if function finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
jw2249a committed May 6, 2024
1 parent c9f8231 commit af9f67a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/gammas/gammaNUMCKpar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ Numeric comparison of two columns
- `cut_a::Number=1`: Lower bound for close string distances.
- `cut_b::Number=2`: Lower bound for partial string distances.
"""

function gammaNUMCKpar!(vecA::Vector, vecB::Vector,
results::DiBitMatrix;
cut_a=1,cut_b=2,
Expand All @@ -56,6 +55,14 @@ function gammaNUMCKpar!(vecA::Vector, vecB::Vector,
vecA=allow_missing(vecA)
vecB=allow_missing(vecB)

# coercing cuts in case they are wrong type
if (eltype(vecA) <: Union{Integer,Missing}) & (eltype(vecB) <: Union{Integer,Missing})
cut_a = Int(cut_a)
cut_b = Int(cut_b)
else
cut_a = Float64(cut_a)
cut_b = Float64(cut_b)
end

# get the sorted indices of a large copied array
append!(vecA,vecB)
Expand Down Expand Up @@ -189,7 +196,7 @@ function gammaNUMCKpar!(vecA::Vector, vecB::Vector,
end

end

@info "finish gammanumckpar"
return nothing
end

Expand Down

0 comments on commit af9f67a

Please sign in to comment.