Skip to content

Commit

Permalink
put entire diconv into threadlimit
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonkoehn committed Oct 15, 2024
1 parent aa35947 commit 8e71f09
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lollipop/cli/deconvolute.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,17 @@ def _deconvolute_bootstrap(
# just run one on everything
weights = {}

# deconvolution
t_kdec = ll.KernelDeconv(
temp_df2[var_dates["var_dates"][mindate] + ["undetermined"]],
temp_df2["frac"],
temp_df2["date"],
kernel=kernel(**kernel_params),
reg=regressor(**regressor_params),
confint=confint(**confint_params),
**weights,
)
with controller.limit(limits=1, user_api='blas'):
# deconvolution
t_kdec = ll.KernelDeconv(
temp_df2[var_dates["var_dates"][mindate] + ["undetermined"]],
temp_df2["frac"],
temp_df2["date"],
kernel=kernel(**kernel_params),
reg=regressor(**regressor_params),
confint=confint(**confint_params),
**weights,
)
t_kdec = t_kdec.deconv_all(**deconv_params)

if have_confint:
Expand Down

0 comments on commit 8e71f09

Please sign in to comment.