Skip to content

Commit

Permalink
Add missing coerce_literal calls. (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKenyon authored Aug 28, 2024
1 parent f7c0621 commit ec9703f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quartical/weights/robust.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def update_icovariance_impl(residuals, flags, etas, icovariance, mode):
@overload(update_icovariance_impl, jit_options=JIT_OPTIONS)
def nb_update_icovariance_impl(residuals, flags, etas, icovariance, mode):

coerce_literal(nb_update_icovariance_impl, ["mode"])
update_covariance_inner = update_covariance_inner_factory(mode)

def impl(residuals, flags, etas, icovariance, mode):
Expand Down Expand Up @@ -91,6 +92,7 @@ def update_etas_impl(residuals, flags, etas, icovariance, dof, mode):
@overload(update_etas_impl, jit_options=JIT_OPTIONS)
def nb_update_etas_impl(residuals, flags, etas, icovariance, dof, mode):

coerce_literal(nb_update_etas_impl, ["mode"])
update_etas_inner = update_etas_inner_factory(mode)

def impl(residuals, flags, etas, icovariance, dof, mode):
Expand Down

0 comments on commit ec9703f

Please sign in to comment.