programmable script - python bug, wrong results?

Hi
I have a simple programmable script with a condition where i use np.where.
The velocity for example should be smaller than 1 otherwise it should be nan.
VEL = np.where((VEL >= 0) & (VEL <= 1.0), VEL, np.nan))

When i check the results, it seems like the condition isn’t applied correctly since velocity values smaller than 1 got nan values, see picture.

What could be the reason for that?

i use paraview 5.13.2

Does that work correctly for other variables ?

Doesnt seem like: This is the variable TA

Can you validate the numpy operation is correct ?