From 0559bca53e0371ca98e6cbdad55e6750dac89d21 Mon Sep 17 00:00:00 2001 From: "Pavel V. Dimens" Date: Fri, 20 Jan 2023 15:35:12 -0500 Subject: [PATCH] fix term progress calls --- src/FStatistics/FstPermutations.jl | 2 +- src/Kinship/KinshipPairwise.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FStatistics/FstPermutations.jl b/src/FStatistics/FstPermutations.jl index 208182cd8..51c4b7afb 100644 --- a/src/FStatistics/FstPermutations.jl +++ b/src/FStatistics/FstPermutations.jl @@ -48,7 +48,7 @@ function _fst_permutation(data::PopData, method::Function, iterations::Int64) end @inbounds results[i,j] = fst_val @inbounds results[j,i] = (pval + 1) / iterations - pbar.update!(job) + update!(job) end end stop!(pbar) diff --git a/src/Kinship/KinshipPairwise.jl b/src/Kinship/KinshipPairwise.jl index 5f0628c1b..3e5b46199 100644 --- a/src/Kinship/KinshipPairwise.jl +++ b/src/Kinship/KinshipPairwise.jl @@ -129,7 +129,7 @@ function _kinship_boot_nofreq(data::PopData, method::Function, iterations::Int, @inbounds bresult[i,j] = bootstats.stats[1].μ @inbounds b_sdev[i,j] = sqrt(bootstats.stats[1].σ2) @inbounds b_ci[i,j] = value(bootstats.stats[2]) - progress.update!(job) + update!(job) end end end @@ -179,7 +179,7 @@ function _kinship_boot_freq(data::PopData, method::Function, iterations::Int, in @inbounds bresult[i,j] = bootstats.stats[1].μ @inbounds b_sdev[i,j] = sqrt(bootstats.stats[1].σ2) @inbounds b_ci[i,j] = value(bootstats.stats[2]) - progress.update!(job) + update!(job) end end end