From af9f67ad0d67d66ea498b3ba8e067dc082d2825f Mon Sep 17 00:00:00 2001 From: jw2249a Date: Mon, 6 May 2024 14:52:22 +0000 Subject: [PATCH] seeing if function finishes --- src/gammas/gammaNUMCKpar.jl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gammas/gammaNUMCKpar.jl b/src/gammas/gammaNUMCKpar.jl index 7194079..e168f11 100755 --- a/src/gammas/gammaNUMCKpar.jl +++ b/src/gammas/gammaNUMCKpar.jl @@ -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, @@ -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) @@ -189,7 +196,7 @@ function gammaNUMCKpar!(vecA::Vector, vecB::Vector, end end - + @info "finish gammanumckpar" return nothing end