Skip to content

Commit 9ae4426

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

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

setup.cfg

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ classifiers =
1010
License :: OSI Approved :: MIT License
1111
Programming Language :: Python :: 3
1212
Programming Language :: Python :: 3 :: Only
13-
Programming Language :: Python :: 3.6
14-
Programming Language :: Python :: 3.7
15-
Programming Language :: Python :: 3.8
16-
Programming Language :: Python :: 3.9
17-
Programming Language :: Python :: 3.10
1813

1914
[options]
2015
packages = find:

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)