Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rafael Peretti Pezzi
OpenFlatus
Commits
08454278
Commit
08454278
authored
Apr 05, 2012
by
Matheus Müller
Browse files
Ajustes
parent
eb3daf3b
Changes
21
Hide whitespace changes
Inline
Side-by-side
Al.dat
deleted
100644 → 0
View file @
eb3daf3b
0 0
1.24565756824 0.206632653061
5.0 0
Al.prof
deleted
100644 → 0
View file @
eb3daf3b
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
Ewindow.py
View file @
08454278
...
...
@@ -15,7 +15,7 @@ Edict = dict()
Ebuttons
=
list
()
Labentrys
=
list
()
Frames
=
list
()
i
=
0
i
=
0
Econtrol
=
0
##############################################################################
...
...
@@ -58,7 +58,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
# Element addition
def
create
():
global
i
,
Edict
,
Ebuttons
Edict
[
i
]
=
dict
(
name
=
"New"
,
symbol
=
"Hf"
,
mass
=
178.
,
Z
=
72
,
dist
=
zeros
(
int
(
10.
/
float
(
OFlabentries
[
17
].
get
()))),
LineShape
=
200.
,
profundidademax
=
10.
)
Edict
[
i
]
=
dict
(
name
=
"New
Element
"
,
symbol
=
"Hf"
,
mass
=
178.
,
Z
=
72
,
dist
=
zeros
(
int
(
10.
/
float
(
OFlabentries
[
17
].
get
()))),
LineShape
=
200.
,
profundidademax
=
10.
)
Ebuttons
.
insert
(
i
,
tk
.
Button
(
Eframe
,
text
=
i
,
width
=
1
,
height
=
1
,
command
=
lambda
i
=
i
:
elem_select
(
i
,
Ebuttons
))
)
Ebuttons
[
i
].
grid
(
column
=
((
len
(
Ebuttons
)
-
1
)
%
13
),
row
=
int
(
math
.
floor
((
len
(
Ebuttons
)
-
1
)
/
13
)))
i
=
i
+
1
...
...
@@ -141,6 +141,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
# 3 // 9 = Symbol
# 4 // 10 = Line shape
# 5 // 11 = Max Depht
## 13 // 12 = Resonance energy (For RNA only)
Labentrys
.
insert
(
0
,
tk
.
Label
(
Frames
[
3
],
width
=
23
,
pady
=
2
,
text
=
'%s'
%
Edict
[
int
(
Econtrol
)][
'name'
])
)
Labentrys
.
insert
(
1
,
tk
.
Label
(
Frames
[
3
],
width
=
23
,
pady
=
2
,
text
=
'Mass - %f'
%
Edict
[
int
(
Econtrol
)][
'mass'
])
)
Labentrys
.
insert
(
2
,
tk
.
Label
(
Frames
[
3
],
width
=
23
,
pady
=
2
,
text
=
'Z - %f'
%
Edict
[
int
(
Econtrol
)][
'Z'
])
)
...
...
@@ -148,11 +149,12 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
Labentrys
.
insert
(
4
,
tk
.
Label
(
Frames
[
3
],
width
=
23
,
pady
=
2
,
text
=
'Line Shape α - %f'
%
Edict
[
int
(
Econtrol
)][
'LineShape'
])
)
Labentrys
.
insert
(
5
,
tk
.
Label
(
Frames
[
3
],
width
=
23
,
pady
=
2
,
text
=
'Max Depht - %f'
%
Edict
[
int
(
Econtrol
)][
'profundidademax'
])
)
for
i
in
range
(
6
):
Labentrys
[
i
].
pack
()
for
i
in
arange
(
6
,
12
):
for
i
in
arange
(
6
,
13
):
Labentrys
.
insert
(
i
,
tk
.
Entry
(
Frames
[
4
],
width
=
17
)
)
Labentrys
.
insert
(
13
,
tk
.
Label
(
Frames
[
3
],
width
=
23
,
pady
=
2
,
text
=
'Resonance energy'
)
)
for
i
in
range
(
14
):
Labentrys
[
i
].
pack
()
# Declaration of interpolation and distribution method variables
...
...
@@ -322,6 +324,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
butrmv
[
'state'
]
=
'normal'
butPTE
[
'state'
]
=
'normal'
RLay
[
'state'
]
=
'normal'
Labentrys
[
12
][
'state'
]
=
'disabled'
elif
str
(
modevar
.
get
())
==
'RRNA'
:
RDra
.
invoke
()
...
...
@@ -329,6 +332,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
but
[
'state'
]
=
'disabled'
butrmv
[
'state'
]
=
'disabled'
RLay
[
'state'
]
=
'disabled'
Labentrys
[
12
][
'state'
]
=
'normal'
for
n
in
arange
(
1
,
len
(
Ebuttons
)):
Ebuttons
[
n
][
'state'
]
=
'disabled'
...
...
@@ -336,7 +340,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
Rions
.
pack
()
Rrrna
=
tk
.
Radiobutton
(
Labelframe
,
text
=
"Resonant RNA"
,
command
=
lambda
i
=
i
:
changemode
(),
variable
=
modevar
,
value
=
'RRNA'
,
width
=
18
)
Rrrna
.
pack
()
Rions
.
select
()
Rions
.
invoke
()
##############################################################################
# Init
...
...
Ewindow.pyc
View file @
08454278
No preview for this file type
Hf.dat
View file @
08454278
0 0
1.22580645161 0.308673469388
1.38461538462 0.188775510204
1.9523573201 0.00520408163265
3.10669975186 0.345255102041
5.20794044664 0.0691326530602
10.0 0
Hf.prof
View file @
08454278
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265
0.00520408163265