Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
101b3d72
Commit
101b3d72
authored
Nov 20, 2019
by
Tobias WEBER
Browse files
caught some warnings in tascalc script
parent
a8db48b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/tascalc/tascalc.py
View file @
101b3d72
...
...
@@ -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"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment