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
eb97447e
Commit
eb97447e
authored
Nov 20, 2019
by
Tobias WEBER
Browse files
cleanups
parent
101b3d72
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/tascalc/tascalc.py
View file @
eb97447e
...
...
@@ -231,8 +231,7 @@ def get_E(ki, kf):
# -----------------------------------------------------------------------------
# GUI
# -----------------------------------------------------------------------------
class
GUI
:
class
TasGUI
:
B
=
np
.
array
([[
1
,
0
,
0
],
[
0
,
1
,
0
],
[
0
,
0
,
1
]])
orient_rlu
=
np
.
array
([
1
,
0
,
0
])
orient2_rlu
=
np
.
array
([
0
,
1
,
0
])
...
...
@@ -252,7 +251,6 @@ class GUI:
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# crystal tab
def
xtalChanged
(
self
):
...
...
@@ -295,7 +293,6 @@ class GUI:
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# tas tab
def
TASChanged
(
self
):
...
...
@@ -437,7 +434,6 @@ class GUI:
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# info/settings tab
def
comboA3ConvChanged
(
self
):
...
...
@@ -447,9 +443,6 @@ class GUI:
# -----------------------------------------------------------------------------
#
# show qt GUI
#
...
...
@@ -475,7 +468,6 @@ class GUI:
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# main application
np
.
set_printoptions
(
suppress
=
True
,
precision
=
4
)
...
...
@@ -492,7 +484,6 @@ class GUI:
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# crystal tab
xtalpanel
=
qtw
.
QWidget
()
...
...
@@ -571,7 +562,6 @@ class GUI:
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# tas tab
taspanel
=
qtw
.
QWidget
()
...
...
@@ -678,7 +668,6 @@ class GUI:
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# info/settings tab
infopanel
=
qtw
.
QWidget
()
...
...
@@ -711,7 +700,6 @@ class GUI:
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# main dialog window
dlg
=
qtw
.
QDialog
()
...
...
@@ -762,9 +750,10 @@ class GUI:
# -----------------------------------------------------------------------------
#
# main
#
if
__name__
==
"__main__"
:
gui
=
GUI
()
gui
=
Tas
GUI
()
# -----------------------------------------------------------------------------
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