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.
This PR changes
registrar_test.py
to useuint
overint
.random.randint
call to be in bound for an image of theuint8
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. Nowhigh
is set to 255, which is the upper bound ofuint8
.