BUG: Avoid failure when ts is empty
BUG: Avoid failure when ts is empty

zerothi/scipy,anntzer/scipy,vigna/scipy,andyfaff/scipy,rgommers/scipy,rgommers/scipy,endolith/scipy,ilayn/scipy,endolith/scipy,ilayn/scipy,anntzer/scipy,perimosocordiae/scipy,vigna/scipy,endolith/scipy,mdhaber/scipy,matthew-brett/scipy,endolith/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,Stefan-Endres/scipy,tylerjereddy/scipy,endolith/scipy,mdhaber/scipy,andyfaff/scipy,andyfaff/scipy,zerothi/scipy,zerothi/scipy,matthew-brett/scipy,perimosocordiae/scipy,mdhaber/scipy,Stefan-Endres/scipy,vigna/scipy,Stefan-Endres/scipy,scipy/scipy,scipy/scipy,endolith/scipy,anntzer/scipy,ilayn/scipy,zerothi/scipy,vigna/scipy,mdhaber/scipy,WarrenWeckesser/scipy,ilayn/scipy,Stefan-Endres/scipy,perimosocordiae/scipy,rgommers/scipy,Stefan-Endres/scipy,andyfaff/scipy,tylerjereddy/scipy,scipy/scipy,WarrenWeckesser/scipy,tylerjereddy/scipy,WarrenWeckesser/scipy,anntzer/scipy,anntzer/scipy,zerothi/scipy,Stefan-Endres/scipy,rgommers/scipy,matthew-brett/scipy,perimosocordiae/scipy,andyfaff/scipy,tylerjereddy/scipy,scipy/scipy,ilayn/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,rgommers/scipy,scipy/scipy,matthew-brett/scipy,mdhaber/scipy,zerothi/scipy,tylerjereddy/scipy,mdhaber/scipy,scipy/scipy,matthew-brett/scipy,anntzer/scipy,ilayn/scipy,vigna/scipy,WarrenWeckesser/scipy,andyfaff/scipy