-
Notifications
You must be signed in to change notification settings - Fork 7
/
order.py
44 lines (41 loc) · 845 Bytes
/
order.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
c
Param_Group=[
["Profile","Background","Contribution"],
["Pattern"],
["Atom","AtomicDisplacementFactor","Phase"],
["StrainParameter","PreferOrient","AsymmetryParameter"]
]
Param_Order=[
"Scale",
"a-Pha","b-Pha","c-Pha",
"W-Pr",
"Back",
"V-Pr",
"U-Pr",
"Back",
"PA",
"X-Atom","Y-Atom","Z-Atom",
"Occ-Atom",
"Bov",
#"B1",
#"B2","B3",
"Biso-Atom",
"GausS",
"Sysin",
"X-Pr",
"Y-Pr",
"LorSiz",
"Str",
"Pref",
"Zero",
"Sycos",
]
order=[]
#get a order for the rietveld
def get_order(paramlist):
str=""
for i in range(0,len(Param_Order)):
for j in range(0,len(paramlist)):
str=paramlist[j].parname+"-"+paramlist[j].type
if str.find(Param_Order[i])!=-1:
order.append(j)