augraphy icon indicating copy to clipboard operation
augraphy copied to clipboard

Update some augmentations to work with new version of numpy

Open MarieRoald opened this issue 1 year ago • 2 comments

I got errors when I tried to use the highlighter effect. It turned out that the std_range was integers but stored as floating point numbers. random.randint needs integers, so by explicitly casting to int, the code works again.

MarieRoald avatar Sep 16 '24 18:09 MarieRoald

I encountered the same issue with BadPhotoCopy, so I casted those numpy-types to native types as well

MarieRoald avatar Sep 23 '24 05:09 MarieRoald

I encountered the same issue with BadPhotoCopy, so I casted those numpy-types to native types as well

Thanks, could you show me the error again and the version of numpy that's causing the error?

kwcckw avatar Sep 23 '24 13:09 kwcckw