Skip to content

Commit

Permalink
fixing dims error in gammakpar addition
Browse files Browse the repository at this point in the history
  • Loading branch information
jw2249a committed May 13, 2024
1 parent 50c4cf3 commit 174cfd9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/fastlink/fastlink.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ function fastLink(dfA::DataFrame, dfB::DataFrame, config::Dict{String,Any})
end

results = process_comparisons(res, emlink_configuration, _dims, parameters, tf_tables)



if length(results) == 3
return Dict("ids" => indices_to_uids(dfA[!, config["idvar"][1]],dfB[!, config["idvar"][2]],results[1].indices),
"resultsEM" => results[2],
Expand Down
1 change: 0 additions & 1 deletion src/gammas/gammaCKfuzzy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ function gammaCKfuzzy!(vecA::PooledVector,vecB::PooledVector,results::DiBitMatri
if @isdefined(_dims) == false
_dims = (length(vecA), length(vecB))
end

# functions that update the results view
if partial
score_value! = score_value2
Expand Down
2 changes: 1 addition & 1 deletion src/gammas/gammaKpar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function gammaKpar!(vecA::Vector,vecB::Vector,results::DiBitMatrix)
Threads.@threads for (ix, x) in collect(enumerate(vecA))
indices_x = findall(vecA .=== x)
if ismissing(x)
for iy in collect(1:dims[2])
for iy in collect(1:_dims[2])
results[ix,iy] = missingval
end
else
Expand Down
5 changes: 0 additions & 5 deletions src/term_frequency_adjustment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ function generate_tf_adjustment_dict(EMOutput::Dict{String,Any}, tfPatterns::Dic
end





function find_tf_pattern_vars(unique_pattern::Vector{UInt8}, tf_indices::Vector{Int64})::Vector{Int64}
return intersect(tf_indices, findall(unique_pattern .== match1 .|| unique_pattern .== match2))
end
Expand Down Expand Up @@ -159,8 +156,6 @@ function get_tf_weight(parameters::Dict, varname::String)::Float64
end




function update_tf_zetas_ismatch(final_bf::Vector{Float64},
threshold_match::Float64)
bf_len = length(final_bf)
Expand Down

0 comments on commit 174cfd9

Please sign in to comment.