Not all numpy funtions can be acccessed in PythonCalculator
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I would like to clip my data field using the PythonCalculator in order to be able to clip the largest vectors from a data array
Normally I did this with
minimum(0.1, mag(U))*U/(mag(U)+1e-6)
But I noticed that minimum does not work anymore.
Also other useful numpy routines like clip do not work in 4.4. I would like to do
clip(mag(U), 0, 0.1)
But this gives 'name' clip ' not defined error.
Other numpy function like sin, square, and sqrt are available.
Is it possible to include the whole list as given here: http://docs.scipy.org/doc/numpy/reference/routines.math.html