Quicker array initialisation

e.g.:
changing 
   array[:] = np.nan
statements to 
   array.fill(np.nan)