Commit 101b3d72 authored by Tobias WEBER's avatar Tobias WEBER

caught some warnings in tascalc script

parent a8db48b5
......@@ -399,6 +399,12 @@ class GUI:
self.tasstatus.setText(u"WARNING: Q is out of the plane by %.4g \u212b\u207b\u00b9, i.e. %.4g deg!" \
% (dist_Q_plane, ang_plane/np.pi*180.))
if np.isnan(a4) or np.isnan(Qlen):
self.tasstatus.setText(u"WARNING: Scattering triangle cannot be closed.")
self.editA3.setText("invalid")
self.editA4.setText("invalid")
self.editQAbs.setText("invalid")
except (ArithmeticError, la.LinAlgError) as err:
self.editA3.setText("invalid")
self.editA4.setText("invalid")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment