Skip to content

Commit b02fadb

Browse files
committed
methods: as per a deprecation warning, call broadcasting version of ustrip and remove extra .* unit(x)
1 parent 9f74bed commit b02fadb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/methods.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ function _compute_estimate(
261261
# https://github.com/JuliaLang/julia/issues/39151.
262262
#
263263
# We strip units because the estimate coefficients are just weights for values of f.
264-
_coefs = ustrip(T.(coefs))
264+
_coefs = ustrip.(T.(coefs))
265265
return sum(fs .* _coefs) ./ T(step) ^ Q
266266
end
267267

@@ -360,7 +360,7 @@ function estimate_step(
360360
) where {TF,T<:Number}
361361
step, acc = withUnit.(
362362
unit(x),
363-
_compute_step_acc_default(m, x) .* unit(x)
363+
_compute_step_acc_default(m, x)
364364
)
365365
return _limit_step(m, x, step, acc)
366366
end

0 commit comments

Comments
 (0)