Skip to content

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
@qtuantruong
Copy link
Member

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

@darrylong darrylong requested a review from qtuantruong June 26, 2024 05:46
@darrylong darrylong marked this pull request as ready for review June 26, 2024 05:46
@darrylong darrylong requested a review from qtuantruong June 27, 2024 10:17
@qtuantruong
Copy link
Member

LGTM.

@darrylong darrylong merged commit ef9956e into PreferredAI:master Jun 29, 2024
@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.

2 participants