Fixed bugs in WFS

One for messages when overiding certain values and other is a bug in calculating the tilt. Also removes some unneeded code.
Ok, understood.


On 20 June 2014 16:22, Nick Kant <notifications@github.com> wrote:

> In src/WFS/mainWFS.py:
>
> > @@ -95,7 +93,7 @@ def tiltPhasePlate(phasePlate, k, f, xPhase, yPhase, dx, dy):
> >  	# Compesates tilt in the phase plate and gives the postion shifts for the diffraction pattern	
> >  	
> >  	# Calculate the average phase tilt and preproces the phase plate
> > -	Gx, Gy = gradient(phasePlate,dx,dy) # Determine the gradient of the phase plate
> > +	Gy, Gx = gradient(phasePlate,dx,dy) # Determine the gradient of the phase plate
>
> Indeed dx and dy should be the other way around, although this gives no
> problems. The problem is that some function use the Matlab way of handling
> x and y and others the Python way. Found actually another bug because of
> the same problem.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/faitdivers/pyao/pull/85/files#r14021634>.
>