Skip to content

Commit d6ca57c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent acd8dc7 commit d6ca57c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contact_models/task_create_contact_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def measure_of_diff_btw_distributions(params, old_distribution, desired_total):
351351
"""
352352
assert (params.index == old_distribution.index).all()
353353
params_deviation = params["value"].to_numpy() - old_distribution.to_numpy()
354-
params_penalty = (params_deviation ** 2).sum()
354+
params_penalty = (params_deviation**2).sum()
355355
actual_total = params.index.to_numpy() @ params["value"].to_numpy()
356356
total_contacts_penalty = (desired_total - actual_total) ** 2
357357
cost = total_contacts_penalty + params_penalty

0 commit comments

Comments
 (0)