Skip to content

Commit

Permalink
hide fit progress during precompilation (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
palday authored Mar 7, 2023
1 parent ac4c44f commit 658aea1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/MixedModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ using SnoopPrecompile
# precompile file and potentially make loading faster.
sleepstudy = MixedModels.dataset(:sleepstudy)
contra = MixedModels.dataset(:contra)
progress = false
@precompile_all_calls begin
# all calls in this block will be precompiled, regardless of whether
# they belong to your package or not (on Julia 1.8 and higher)
Expand All @@ -193,11 +194,11 @@ using SnoopPrecompile
# while still massively boosting load and TTFX times
fit(MixedModel,
@formula(reaction ~ 1 + days + (1 + days | subj)),
sleepstudy)
sleepstudy; progress)
fit(MixedModel,
@formula(use ~ 1 + age + abs2(age) + urban + livch + (1 | urban & dist)),
contra,
Bernoulli())
Bernoulli(); progress)
end
end

Expand Down

0 comments on commit 658aea1

Please sign in to comment.