Jiang2019Code
Results
1
comments of
Jiang2019Code
I use a replace method to solve this problem vectorArray=np.concatenate(vectorList,axis=0)#your array whereNan = np.where(np.isnan(np.sum(vectorArray, axis=0)))#find where nan vectorArray[np.isnan(vectorArray)] = 0 #replace the nan vectorResult=np.nanargmax(vectorArray,axis=0).astype(np.float)#do something vectorResult[whereNan] = np.nan #replace the...