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

[test] [SWM-145] Fix numpy deprecation warning #2852

Merged

Conversation

tmoerkerken
Copy link
Contributor

@tmoerkerken tmoerkerken commented Aug 2, 2024

This PR changes

  • the dtype in registrar_test.py to use uint over int.
  • the random.randint call to be in bound for an image of the uint8 dtype.

To exemplify: before the suggested change, the high argument was set to 256, which allows integers above 127 (which is the upper bound of int8). This triggered a warning for the latest Numpy version compatible with Ubuntu 24. Now high is set to 255, which is the upper bound of uint8.

@tmoerkerken tmoerkerken changed the title [test] [SWM-145] Fix numpy deprecation warning [test] [SWM-145] Fix out of bound integer in numpy call Aug 2, 2024
@tmoerkerken tmoerkerken marked this pull request as ready for review August 5, 2024 11:50
@tmoerkerken tmoerkerken changed the title [test] [SWM-145] Fix out of bound integer in numpy call [test] [SWM-145] Fix numpy deprecation warning Aug 5, 2024
@tepals tepals merged commit f43833e into delmic:master Aug 9, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants