Skip to content

Commit

Permalink
tests: avoid deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 20, 2020
1 parent 63d29c4 commit 5e1716a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_model_expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import nanite
from nanite import IndentationGroup
import nanite.model
from nanite.model import weight
from nanite.model import residuals


datadir = pathlib.Path(__file__).resolve().parent / "data"
Expand Down Expand Up @@ -102,7 +102,7 @@ def residual(params, delta, force, weight_cp=5e-7):
if weight_cp:
# weight the curve so that the data around the contact_point do
# not affect the fit so much.
weights = weight.weight_cp(
weights = residuals.compute_contact_point_weights(
cp=params["contact_point"].value,
delta=delta,
weight_dist=weight_cp)
Expand Down

0 comments on commit 5e1716a

Please sign in to comment.