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

Fix Pytest error in test cases due to Numpy 2.0 incompatibility #627

Merged
merged 24 commits into from
Jun 29, 2024

Conversation

darrylong
Copy link
Member

@darrylong darrylong commented Jun 25, 2024

Description

In our unit tests, pytest throws failures due to incompatibility of the np.Inf being deprecated (A deprecation in Numpy 2.0).

We pin the version of numpy<2.0.0, and scipy<=1.13.1. In a separate issue and PR, we will resolve codes regarding Numpy 2.0 errors.

Related Issues

Checklist:

  • I have added tests.
  • I have updated the documentation accordingly.
  • I have updated README.md (if you are adding a new model).
  • I have updated examples/README.md (if you are adding a new example).
  • I have updated datasets/README.md (if you are adding a new dataset).

@darrylong darrylong self-assigned this Jun 25, 2024
@darrylong darrylong added the maintenance Changes relating to build process, tools and libraries such as docs generation. label Jun 25, 2024
@tqtg
Copy link
Member

tqtg commented Jun 26, 2024

Let's also set an upper bound for Numpy and Scipy version in setup.py.

@darrylong darrylong requested a review from tqtg June 26, 2024 05:46
@darrylong darrylong marked this pull request as ready for review June 26, 2024 05:46
.circleci/config.yml Outdated Show resolved Hide resolved
@darrylong darrylong requested a review from tqtg June 27, 2024 10:17
@tqtg
Copy link
Member

tqtg commented Jun 28, 2024

LGTM.

@darrylong darrylong merged commit ef9956e into PreferredAI:master Jun 29, 2024
24 checks passed
@darrylong darrylong deleted the fix-pytest-scipy branch June 29, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Changes relating to build process, tools and libraries such as docs generation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants