Closed gillins closed 8 months ago
Well done to you both. Looks like scipy 1.9.0 was July 2022, so it would have been broken for a while. How annoying. Thank you both for tracking it down.
That fix seems good to me, thanks
Probably unnoticed until now because most people were using Ubuntu 22.04 as their base.
I just hit this bug, but it's already fixed. Thanks!
Will do a new point release once Tim has confirmed the Batch stuff is working ok.
As spotted by @t-hackwood
pyshepseg
fails to do tiled segmentation with a recent scipy as it tries to index a scalar. The problem is that the behaviour changed in scipy 1.9.0 where akeepdims
parameter was added to the stats functions. Now returns a scalar for 1d inputs by default.keepdims=True
will revert to the previous behaviour (return a 1d array for 1d inputs), but since this wasn't an option on earlier scipy, this will break older installs.So my approach was to do a test on what is returned. Tested on scipy 1.8 and 1.12.
Any thoughts @neilflood (no hurry on this) ?