Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace lap.lapjv() with scipy.optimize.linear_sum_assignment() #3267

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

fritzo
Copy link
Member

@fritzo fritzo commented Sep 15, 2023

Addresses #3234

This replaces the unmaintained and difficult-to-install lap dependency with scipy.optimize.linear_sum_assignment. This is important because lap requires an old version of setuptools, and @dependabot has recommended pinning to a newer version of setuptools that fixes a vulnerability. This PR does not attempt to pin setuptools yet.

This PR also fixes a bug in assert_equal() for integer tensors whereby some assertions were not being checked.

Tested

  • refactoring is covered by existing tests
  • removed pytest.skip from affected tests
  • fixed a bug in assert_equal() for integer tensors

Copy link
Member

@eb8680 eb8680 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing this!

@eb8680 eb8680 merged commit 3b6cae3 into dev Sep 20, 2023
9 checks passed
@eb8680 eb8680 deleted the replace-lap branch September 20, 2023 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants