Raise SurfaceError if surface position data only has a single z value.
authorW. Trevor King <wking@drexel.edu>
Wed, 14 Mar 2012 22:52:42 +0000 (18:52 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 14 Mar 2012 22:52:42 +0000 (18:52 -0400)
commitcf5e348c7dd7141415f5fecfb15251867060e2f4
tree9b2df4f9de912a92f371816b1384ea9f35de4157
parent8632c3e7c8aff5a12fbb60658f6d22e103ed17a0
Raise SurfaceError if surface position data only has a single z value.

If the deflection at the minimum position is over the dangerous
threshold, `get_surface_position_data()` will not take any steps in.
With this commit, we avoid raising a ZeroDivisionError in that
situation.
pypiezo/surface.py