STY: fix odd use of array.nonzero().  Closes #1632.
STY: fix odd use of array.nonzero().  Closes #1632.

sargas/scipy,Newman101/scipy,Kamp9/scipy,zxsted/scipy,richardotis/scipy,giorgiop/scipy,hainm/scipy,Dapid/scipy,giorgiop/scipy,argriffing/scipy,pizzathief/scipy,lukauskas/scipy,bkendzior/scipy,Kamp9/scipy,sonnyhu/scipy,WillieMaddox/scipy,FRidh/scipy,newemailjdm/scipy,lhilt/scipy,arokem/scipy,befelix/scipy,arokem/scipy,mtrbean/scipy,vberaudi/scipy,tylerjereddy/scipy,jonycgn/scipy,e-q/scipy,pschella/scipy,mgaitan/scipy,mtrbean/scipy,niknow/scipy,petebachant/scipy,vberaudi/scipy,WarrenWeckesser/scipy,mikebenfield/scipy,mhogg/scipy,maciejkula/scipy,minhlongdo/scipy,Shaswat27/scipy,sonnyhu/scipy,anntzer/scipy,teoliphant/scipy,niknow/scipy,larsmans/scipy,fernand/scipy,njwilson23/scipy,zerothi/scipy,trankmichael/scipy,jonycgn/scipy,dominicelse/scipy,behzadnouri/scipy,haudren/scipy,jsilter/scipy,maciejkula/scipy,anielsen001/scipy,giorgiop/scipy,mingwpy/scipy,newemailjdm/scipy,mingwpy/scipy,arokem/scipy,rmcgibbo/scipy,Shaswat27/scipy,Newman101/scipy,maciejkula/scipy,josephcslater/scipy,niknow/scipy,ndchorley/scipy,minhlongdo/scipy,Stefan-Endres/scipy,WillieMaddox/scipy,pschella/scipy,futurulus/scipy,anntzer/scipy,chatcannon/scipy,richardotis/scipy,matthew-brett/scipy,nvoron23/scipy,perimosocordiae/scipy,endolith/scipy,haudren/scipy,vhaasteren/scipy,pizzathief/scipy,ndchorley/scipy,mikebenfield/scipy,fernand/scipy,kleskjr/scipy,nmayorov/scipy,WillieMaddox/scipy,WillieMaddox/scipy,FRidh/scipy,sargas/scipy,perimosocordiae/scipy,kalvdans/scipy,gfyoung/scipy,apbard/scipy,haudren/scipy,andim/scipy,richardotis/scipy,Kamp9/scipy,dch312/scipy,maniteja123/scipy,zaxliu/scipy,gertingold/scipy,josephcslater/scipy,rmcgibbo/scipy,trankmichael/scipy,vanpact/scipy,WarrenWeckesser/scipy,aeklant/scipy,chatcannon/scipy,jor-/scipy,ilayn/scipy,jjhelmus/scipy,endolith/scipy,Stefan-Endres/scipy,mortonjt/scipy,vanpact/scipy,matthew-brett/scipy,richardotis/scipy,hainm/scipy,Shaswat27/scipy,endolith/scipy,josephcslater/scipy,aarchiba/scipy,ortylp/scipy,lukauskas/scipy,scipy/scipy,jonycgn/scipy,andyfaff/scipy,pyramania/scipy,mtrbean/scipy,dominicelse/scipy,gef756/scipy,futurulus/scipy,scipy/scipy,josephcslater/scipy,Stefan-Endres/scipy,gfyoung/scipy,dominicelse/scipy,anielsen001/scipy,mtrbean/scipy,Kamp9/scipy,jonycgn/scipy,teoliphant/scipy,teoliphant/scipy,sonnyhu/scipy,anielsen001/scipy,futurulus/scipy,pyramania/scipy,petebachant/scipy,kalvdans/scipy,matthew-brett/scipy,andyfaff/scipy,trankmichael/scipy,gef756/scipy,e-q/scipy,aarchiba/scipy,andim/scipy,newemailjdm/scipy,sonnyhu/scipy,ortylp/scipy,zxsted/scipy,vhaasteren/scipy,gfyoung/scipy,minhlongdo/scipy,zaxliu/scipy,befelix/scipy,grlee77/scipy,Stefan-Endres/scipy,Newman101/scipy,juliantaylor/scipy,vigna/scipy,larsmans/scipy,perimosocordiae/scipy,felipebetancur/scipy,aman-iitj/scipy,apbard/scipy,jamestwebber/scipy,ales-erjavec/scipy,lukauskas/scipy,ortylp/scipy,behzadnouri/scipy,lhilt/scipy,fredrikw/scipy,fernand/scipy,chatcannon/scipy,rmcgibbo/scipy,Gillu13/scipy,Stefan-Endres/scipy,gef756/scipy,anntzer/scipy,trankmichael/scipy,niknow/scipy,fredrikw/scipy,ogrisel/scipy,Dapid/scipy,mortonjt/scipy,jseabold/scipy,niknow/scipy,fredrikw/scipy,person142/scipy,raoulbq/scipy,ndchorley/scipy,sargas/scipy,Shaswat27/scipy,fredrikw/scipy,ChanderG/scipy,aarchiba/scipy,Eric89GXL/scipy,Kamp9/scipy,vhaasteren/scipy,aman-iitj/scipy,mdhaber/scipy,niknow/scipy,petebachant/scipy,sriki18/scipy,jamestwebber/scipy,scipy/scipy,bkendzior/scipy,vanpact/scipy,futurulus/scipy,FRidh/scipy,mgaitan/scipy,efiring/scipy,juliantaylor/scipy,zxsted/scipy,pyramania/scipy,scipy/scipy,andim/scipy,futurulus/scipy,argriffing/scipy,mikebenfield/scipy,zerothi/scipy,jjhelmus/scipy,mortada/scipy,WarrenWeckesser/scipy,felipebetancur/scipy,andim/scipy,pbrod/scipy,mhogg/scipy,josephcslater/scipy,Gillu13/scipy,pbrod/scipy,mingwpy/scipy,ogrisel/scipy,witcxc/scipy,mgaitan/scipy,perimosocordiae/scipy,person142/scipy,raoulbq/scipy,sriki18/scipy,pyramania/scipy,pschella/scipy,gertingold/scipy,sonnyhu/scipy,jor-/scipy,mingwpy/scipy,maniteja123/scipy,woodscn/scipy,sriki18/scipy,zerothi/scipy,piyush0609/scipy,Gillu13/scipy,pnedunuri/scipy,vberaudi/scipy,e-q/scipy,jjhelmus/scipy,kleskjr/scipy,kleskjr/scipy,newemailjdm/scipy,hainm/scipy,felipebetancur/scipy,mortada/scipy,cpaulik/scipy,teoliphant/scipy,FRidh/scipy,jakevdp/scipy,chatcannon/scipy,gdooper/scipy,anntzer/scipy,Eric89GXL/scipy,surhudm/scipy,nmayorov/scipy,fernand/scipy,Eric89GXL/scipy,tylerjereddy/scipy,Srisai85/scipy,mhogg/scipy,piyush0609/scipy,mortonjt/scipy,Dapid/scipy,juliantaylor/scipy,jor-/scipy,aeklant/scipy,vhaasteren/scipy,dch312/scipy,apbard/scipy,minhlongdo/scipy,argriffing/scipy,dch312/scipy,zxsted/scipy,witcxc/scipy,anielsen001/scipy,ales-erjavec/scipy,Gillu13/scipy,lukauskas/scipy,ilayn/scipy,haudren/scipy,ortylp/scipy,andim/scipy,tylerjereddy/scipy,trankmichael/scipy,Newman101/scipy,felipebetancur/scipy,Shaswat27/scipy,Shaswat27/scipy,ChanderG/scipy,juliantaylor/scipy,tylerjereddy/scipy,jamestwebber/scipy,ortylp/scipy,maniteja123/scipy,Srisai85/scipy,ilayn/scipy,pbrod/scipy,andim/scipy,andyfaff/scipy,grlee77/scipy,larsmans/scipy,Eric89GXL/scipy,Srisai85/scipy,njwilson23/scipy,nmayorov/scipy,vhaasteren/scipy,chatcannon/scipy,rmcgibbo/scipy,efiring/scipy,jor-/scipy,raoulbq/scipy,pbrod/scipy,gdooper/scipy,hainm/scipy,sauliusl/scipy,cpaulik/scipy,jakevdp/scipy,vigna/scipy,argriffing/scipy,scipy/scipy,rmcgibbo/scipy,efiring/scipy,endolith/scipy,mortada/scipy,aeklant/scipy,Kamp9/scipy,larsmans/scipy,aman-iitj/scipy,mortonjt/scipy,ilayn/scipy,pschella/scipy,endolith/scipy,gertingold/scipy,gef756/scipy,dch312/scipy,gdooper/scipy,vanpact/scipy,grlee77/scipy,minhlongdo/scipy,kleskjr/scipy,rgommers/scipy,gfyoung/scipy,apbard/scipy,WillieMaddox/scipy,jseabold/scipy,woodscn/scipy,ogrisel/scipy,petebachant/scipy,raoulbq/scipy,aarchiba/scipy,nonhermitian/scipy,piyush0609/scipy,sargas/scipy,mdhaber/scipy,richardotis/scipy,newemailjdm/scipy,aman-iitj/scipy,pnedunuri/scipy,raoulbq/scipy,Newman101/scipy,kleskjr/scipy,witcxc/scipy,anielsen001/scipy,jonycgn/scipy,fredrikw/scipy,pizzathief/scipy,anntzer/scipy,petebachant/scipy,trankmichael/scipy,maniteja123/scipy,kleskjr/scipy,nvoron23/scipy,hainm/scipy,endolith/scipy,ndchorley/scipy,vberaudi/scipy,woodscn/scipy,vigna/scipy,vanpact/scipy,mhogg/scipy,bkendzior/scipy,pbrod/scipy,sauliusl/scipy,jor-/scipy,nmayorov/scipy,aeklant/scipy,mgaitan/scipy,rgommers/scipy,person142/scipy,woodscn/scipy,lukauskas/scipy,jakevdp/scipy,kalvdans/scipy,sauliusl/scipy,mdhaber/scipy,Dapid/scipy,mtrbean/scipy,aeklant/scipy,sriki18/scipy,FRidh/scipy,cpaulik/scipy,cpaulik/scipy,ChanderG/scipy,pyramania/scipy,ales-erjavec/scipy,petebachant/scipy,zerothi/scipy,befelix/scipy,rgommers/scipy,nonhermitian/scipy,lukauskas/scipy,mortada/scipy,surhudm/scipy,rgommers/scipy,felipebetancur/scipy,nvoron23/scipy,jsilter/scipy,piyush0609/scipy,Gillu13/scipy,zerothi/scipy,matthewalbani/scipy,anntzer/scipy,matthewalbani/scipy,haudren/scipy,behzadnouri/scipy,maciejkula/scipy,mortada/scipy,arokem/scipy,matthewalbani/scipy,mdhaber/scipy,surhudm/scipy,mgaitan/scipy,aman-iitj/scipy,larsmans/scipy,mhogg/scipy,jsilter/scipy,zaxliu/scipy,Dapid/scipy,sonnyhu/scipy,nvoron23/scipy,ales-erjavec/scipy,Gillu13/scipy,ilayn/scipy,gfyoung/scipy,jakevdp/scipy,matthewalbani/scipy,mikebenfield/scipy,nvoron23/scipy,witcxc/scipy,mdhaber/scipy,perimosocordiae/scipy,newemailjdm/scipy,person142/scipy,Newman101/scipy,zaxliu/scipy,surhudm/scipy,mingwpy/scipy,mikebenfield/scipy,maciejkula/scipy,jonycgn/scipy,rmcgibbo/scipy,ortylp/scipy,jseabold/scipy,ChanderG/scipy,Stefan-Endres/scipy,dominicelse/scipy,sriki18/scipy,mdhaber/scipy,fernand/scipy,minhlongdo/scipy,jsilter/scipy,mortada/scipy,pschella/scipy,vhaasteren/scipy,efiring/scipy,woodscn/scipy,andyfaff/scipy,hainm/scipy,andyfaff/scipy,gdooper/scipy,kalvdans/scipy,vigna/scipy,nmayorov/scipy,vanpact/scipy,Srisai85/scipy,njwilson23/scipy,argriffing/scipy,jsilter/scipy,mortonjt/scipy,argriffing/scipy,Eric89GXL/scipy,jjhelmus/scipy,WarrenWeckesser/scipy,jseabold/scipy,piyush0609/scipy,njwilson23/scipy,kalvdans/scipy,sargas/scipy,bkendzior/scipy,giorgiop/scipy,giorgiop/scipy,cpaulik/scipy,lhilt/scipy,gertingold/scipy,pizzathief/scipy,vberaudi/scipy,teoliphant/scipy,zerothi/scipy,perimosocordiae/scipy,felipebetancur/scipy,ndchorley/scipy,e-q/scipy,jseabold/scipy,cpaulik/scipy,Srisai85/scipy,ilayn/scipy,lhilt/scipy,mtrbean/scipy,pnedunuri/scipy,WillieMaddox/scipy,behzadnouri/scipy,jseabold/scipy,pbrod/scipy,aman-iitj/scipy,gef756/scipy,dch312/scipy,grlee77/scipy,fernand/scipy,efiring/scipy,Dapid/scipy,WarrenWeckesser/scipy,rgommers/scipy,WarrenWeckesser/scipy,e-q/scipy,person142/scipy,nonhermitian/scipy,surhudm/scipy,behzadnouri/scipy,chatcannon/scipy,haudren/scipy,ndchorley/scipy,piyush0609/scipy,ogrisel/scipy,giorgiop/scipy,ales-erjavec/scipy,vigna/scipy,matthew-brett/scipy,FRidh/scipy,arokem/scipy,pnedunuri/scipy,fredrikw/scipy,surhudm/scipy,zxsted/scipy,nvoron23/scipy,ChanderG/scipy,tylerjereddy/scipy,nonhermitian/scipy,nonhermitian/scipy,witcxc/scipy,larsmans/scipy,efiring/scipy,pizzathief/scipy,mingwpy/scipy,jamestwebber/scipy,befelix/scipy,gef756/scipy,raoulbq/scipy,apbard/scipy,sauliusl/scipy,befelix/scipy,matthewalbani/scipy,Srisai85/scipy,vberaudi/scipy,zxsted/scipy,jakevdp/scipy,jjhelmus/scipy,ales-erjavec/scipy,mhogg/scipy,pnedunuri/scipy,mgaitan/scipy,zaxliu/scipy,sauliusl/scipy,grlee77/scipy,mortonjt/scipy,maniteja123/scipy,scipy/scipy,maniteja123/scipy,aarchiba/scipy,jamestwebber/scipy,pnedunuri/scipy,matthew-brett/scipy,gertingold/scipy,bkendzior/scipy,njwilson23/scipy,zaxliu/scipy,njwilson23/scipy,andyfaff/scipy,gdooper/scipy,juliantaylor/scipy,Eric89GXL/scipy,woodscn/scipy,behzadnouri/scipy,lhilt/scipy,ChanderG/scipy,dominicelse/scipy,anielsen001/scipy,sauliusl/scipy,richardotis/scipy,sriki18/scipy,ogrisel/scipy,futurulus/scipy