FIX: Fix deprecated scipy function
Merge pull request #1224 from Eric89GXL/fix-dep

FIX: Fix deprecated scipy function