<span style="font-family: Arial; font-size: 13px;">Thanks Zach<br><br>You are right. I needed generic filter - to update current point, and not the neighbors as I wrote.<br>Initial code is slow loop over 2D python lists, which I'm trying to convert to numpy and make it useful. In that loop there is inner loop for calculating neighbors properties, which confused me yesterday, and mislead to search for something that probably does not make sense.<br><br>It's clear now :)<br><br>Regards<br><span style="FONT-FAMILY:'Consolas' ; FONT-SIZE:12 ; COLOR:#000000 ; BACKGROUND-COLOR:transparent ; "></span></span>