Changeset 1627
- Timestamp:
- Jan 9, 2015 6:33:57 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 14 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIexprGUI.py
r1619 r1627 173 173 try: # deal with values that are in lists 174 174 val = parmDict[key][0] 175 except KeyError: 176 continue # there were dicts in parmDict (should be gone now) 175 177 except (TypeError,IndexError): 176 178 val = parmDict[key] -
trunk/GSASIIgrid.py
r1626 r1627 3427 3427 sv = var.split(':') 3428 3428 if len(sv) <= 1: return var 3429 sv[1] = insChar 3429 if sv[1]: 3430 sv[1] = insChar 3430 3431 return ':'.join(sv) 3431 3432 … … 3958 3959 # scan for locations where the variables change 3959 3960 VaryListChanges = [] # histograms where there is a change 3960 prevVaryList = []3961 3961 combinedVaryList = [] 3962 3962 firstValueList = [] … … 3964 3964 posdict = {} 3965 3965 for i,name in enumerate(histNames): 3966 if i == 0 or prevVaryList != sorted(data[name]['varyList']): 3966 newval = False 3967 for var,val in zip(data[name]['varyList'],data[name]['variables']): 3968 svar = striphist(var,'*') 3969 if svar in combinedVaryList: continue 3967 3970 # add variables to list as they appear 3968 for j,var in enumerate(data[name]['varyList']):3969 if var in combinedVaryList: continue3970 combinedVaryList.append(data[name]['varyList'][j])3971 firstValueList.append(data[name]['variables'][j])3971 combinedVaryList.append(svar) 3972 firstValueList.append(val) 3973 newval = True 3974 if newval: 3972 3975 vallookup[name] = dict(zip(data[name]['varyList'],data[name]['variables'])) 3973 3976 posdict[name] = {} 3974 for lblin data[name]['varyList']:3975 posdict[name][combinedVaryList.index(lbl)] = lbl3976 prevVaryList = sorted(data[name]['varyList'])3977 for var in data[name]['varyList']: 3978 svar = striphist(var,'*') 3979 posdict[name][combinedVaryList.index(svar)] = svar 3977 3980 VaryListChanges.append(name) 3978 3981 if len(VaryListChanges) > 1: … … 4063 4066 if name in posdict: 4064 4067 varsellist = [posdict[name].get(i) for i in range(varcols)] 4065 sellist = [data[name]['varyList'].index(v) if v is not None else None for v in varsellist] 4068 #sellist = [data[name]['varyList'].index(v) if v is not None else None for v in varsellist] 4069 sellist = [i if striphist(v,'*') in varsellist else None for i,v in enumerate(data[name]['varyList'])] 4066 4070 if not varsellist: raise Exception() 4067 4071 vals.append([data[name]['variables'][s] if s is not None else None for s in sellist]) -
trunk/help/ParametricFitting.htm
r1434 r1627 1198 1198 type="#_x0000_t75" style='width:354pt;height:180.75pt;visibility:visible; 1199 1199 mso-wrap-style:square'> 1200 <v:imagedata src="ParametricFitting_files/image016.png" o:title="" croptop="2743f" 1201 cropbottom="7533f" cropleft="2917f" cropright="3097f"/> 1200 <v:imagedata src="ParametricFitting_files/image016.png" o:title=""/> 1202 1201 </v:shape><![endif]--><![if !vml]><img border=0 width=472 height=241 1203 src="ParametricFitting_files/image01 7.png" v:shapes="Picture_x0020_10"><![endif]></span></p>1202 src="ParametricFitting_files/image016.png" v:shapes="Picture_x0020_10"><![endif]></span></p> 1204 1203 1205 1204 <p class=MsoListParagraphCxSpMiddle><!--[if gte vml 1]><v:shape id="Picture_x0020_11" … … 1233 1232 type="#_x0000_t75" style='width:351.75pt;height:303pt;visibility:visible; 1234 1233 mso-wrap-style:square'> 1235 <v:imagedata src="ParametricFitting_files/image020.png" o:title="" croptop="2107f" 1236 cropbottom="4939f" cropleft="3133f" cropright="3309f"/> 1234 <v:imagedata src="ParametricFitting_files/image020.png" o:title=""/> 1237 1235 </v:shape><![endif]--><![if !vml]><img border=0 width=469 height=404 1238 src="ParametricFitting_files/image02 1.png" v:shapes="Picture_x0020_12"><![endif]></span></p>1236 src="ParametricFitting_files/image020.png" v:shapes="Picture_x0020_12"><![endif]></span></p> 1239 1237 1240 1238 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> … … 1269 1267 type="#_x0000_t75" style='width:353.25pt;height:303.75pt;visibility:visible; 1270 1268 mso-wrap-style:square'> 1271 <v:imagedata src="ParametricFitting_files/image024.png" o:title="" croptop="1859f" 1272 cropbottom="5066f" cropleft="3024f" cropright="3203f"/> 1269 <v:imagedata src="ParametricFitting_files/image024.png" o:title=""/> 1273 1270 </v:shape><![endif]--><![if !vml]><img border=0 width=471 height=405 1274 src="ParametricFitting_files/image02 5.png" v:shapes="Picture_x0020_14"><![endif]></span></p>1271 src="ParametricFitting_files/image024.png" v:shapes="Picture_x0020_14"><![endif]></span></p> 1275 1272 1276 1273 <h1>Step 3: Fitting a simple parametric equation to the unit cell volume</h1> … … 1292 1289 type="#_x0000_t75" style='width:356.25pt;height:305.25pt;visibility:visible; 1293 1290 mso-wrap-style:square'> 1294 <v:imagedata src="ParametricFitting_files/image026.png" o:title="" croptop="2107f" 1295 cropbottom="4567f" cropleft="3024f" cropright="2769f"/> 1291 <v:imagedata src="ParametricFitting_files/image026.png" o:title=""/> 1296 1292 </v:shape><![endif]--><![if !vml]><img border=0 width=475 height=407 1297 src="ParametricFitting_files/image02 7.png" v:shapes="Picture_x0020_15"><![endif]></span></p>1293 src="ParametricFitting_files/image026.png" v:shapes="Picture_x0020_15"><![endif]></span></p> 1298 1294 1299 1295 <p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;mso-list:l0 level1 lfo6'><![if !supportLists]><span … … 1565 1561 <p class=MsoListParagraphCxSpMiddle style='margin-left:1.5in;mso-add-space: 1566 1562 auto'><b style='mso-bidi-font-weight:normal'><span style='font-family:Courier'><span 1567 style='mso-spacerun:yes'> </span>::m<span style='mso-spacerun:yes'> </span>= 1568 -0.4476(5)<o:p></o:p></span></b></p> 1563 style='mso-spacerun:yes'> </span>0::Vol = m*x +b<o:p></o:p></span></b></p> 1569 1564 1570 1565 <p class=MsoListParagraphCxSpMiddle style='margin-left:1.5in;mso-add-space: 1571 1566 auto'><b style='mso-bidi-font-weight:normal'><span style='font-family:Courier'><span 1572 style='mso-spacerun:yes'> </span>::b<span style='mso-spacerun:yes'> </span>= 1573 577.73(8)<o:p></o:p></span></b></p> 1567 style='mso-spacerun:yes'> </span>x<span style='mso-spacerun:yes'> </span>= 1568 Temperature<o:p></o:p></span></b></p> 1569 1570 <p class=MsoListParagraphCxSpMiddle style='margin-left:1.5in;mso-add-space: 1571 auto'><b style='mso-bidi-font-weight:normal'><span style='font-family:Courier'><span 1572 style='mso-spacerun:yes'> </span>b<span style='mso-spacerun:yes'> </span>= 1573 561.7722(26)<o:p></o:p></span></b></p> 1574 1575 <p class=MsoListParagraphCxSpMiddle style='margin-left:1.5in;mso-add-space: 1576 auto'><b style='mso-bidi-font-weight:normal'><span style='font-family:Courier'><span 1577 style='mso-spacerun:yes'> </span>m<span style='mso-spacerun:yes'> </span>= 1578 0.014833(14)<o:p></o:p></span></b></p> 1579 1574 1580 1575 1581 <p class=MsoListParagraphCxSpMiddle style='margin-left:1.5in;mso-add-space: … … 1580 1586 type="#_x0000_t75" style='width:350.25pt;height:302.25pt;visibility:visible; 1581 1587 mso-wrap-style:square'> 1582 <v:imagedata src="ParametricFitting_files/image048.png" o:title="" croptop="2231f" 1583 cropbottom="5061f" cropleft="3133f" cropright="3524f"/> 1588 <v:imagedata src="ParametricFitting_files/image048.png" o:title=""/> 1584 1589 </v:shape><![endif]--><![if !vml]><img border=0 width=467 height=403 1585 src="ParametricFitting_files/image04 9.png" v:shapes="Picture_x0020_27"><![endif]></span><span1590 src="ParametricFitting_files/image048.png" v:shapes="Picture_x0020_27"><![endif]></span><span 1586 1591 style='font-family:"Cambria","serif";mso-ascii-theme-font:minor-latin; 1587 1592 mso-hansi-theme-font:minor-latin'><o:p></o:p></span></p> … … 1625 1630 type="#_x0000_t75" style='width:350.25pt;height:303pt;visibility:visible; 1626 1631 mso-wrap-style:square'> 1627 <v:imagedata src="ParametricFitting_files/image050.png" o:title="" croptop="658f" 1628 cropbottom="2861f" cropleft="1709f" cropright="1878f"/> 1632 <v:imagedata src="ParametricFitting_files/image050.png" o:title=""/> 1629 1633 </v:shape><![endif]--><![if !vml]><img border=0 width=467 height=404 1630 src="ParametricFitting_files/image05 1.png" v:shapes="Picture_x0020_28"><![endif]></span></p>1634 src="ParametricFitting_files/image050.png" v:shapes="Picture_x0020_28"><![endif]></span></p> 1631 1635 1632 1636 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> … … 1703 1707 is certainly not what we want here.<span style='mso-spacerun:yes'> </span>Finally, 1704 1708 since this equation is too complex to fit without some reasonable starting 1705 values, specify an approximate value for the vicinity of where <i1706 style=' mso-bidi-font-style:normal'>c</i> starts to change, enter<b1707 style='mso-bidi-font-weight:normal'> </b><b style='mso-bidi-font-weight:normal'><span 1708 style=' font-family:"Calibri","sans-serif";mso-ascii-theme-font:major-latin;1709 mso-hansi-theme-font:major-latin'>120</span> </b>for<b style='mso-bidi-font-weight:1709 values, specify an approximate value, <b style='mso-bidi-font-weight:normal'><span 1710 style='font-family:"Calibri","sans-serif";mso-ascii-theme-font:major-latin; 1711 mso-hansi-theme-font:major-latin'>120</span></b>, for the vicinity of where the <i 1712 style='mso-bidi-font-style:normal'>c</i> lattice parameter starts to 1713 change (<b style='mso-bidi-font-weight: 1710 1714 normal'><span style='font-family:"Calibri","sans-serif";mso-ascii-theme-font: 1711 major-latin;mso-hansi-theme-font:major-latin'>t0</span>.</b></p> 1715 major-latin;mso-hansi-theme-font:major-latin'>t0</span></b>) and 1716 non-zero values for variables <B>c</B> and <B>k</B>.</p> 1712 1717 1713 1718 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> … … 1717 1722 type="#_x0000_t75" style='width:317.25pt;height:171pt;visibility:visible; 1718 1723 mso-wrap-style:square'> 1719 <v:imagedata src="ParametricFitting_files/image052.png" o:title="" croptop="3272f" 1720 cropbottom="7856f" cropleft="3218f" cropright="3436f"/> 1724 <v:imagedata src="ParametricFitting_files/image052.png" o:title=""/> 1721 1725 </v:shape><![endif]--><![if !vml]><img border=0 width=423 height=228 1722 src="ParametricFitting_files/image05 3.png" v:shapes="Picture_x0020_40"><![endif]></span></p>1726 src="ParametricFitting_files/image052.png" v:shapes="Picture_x0020_40"><![endif]></span></p> 1723 1727 1724 1728 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> … … 1740 1744 id="Picture_x0020_41" o:spid="_x0000_i1032" type="#_x0000_t75" style='width:317.25pt; 1741 1745 height:168.75pt;visibility:visible;mso-wrap-style:square'> 1742 <v:imagedata src="ParametricFitting_files/image054.png" o:title="" croptop="3477f" 1743 cropbottom="8265f" cropleft="3218f" cropright="3436f"/> 1746 <v:imagedata src="ParametricFitting_files/image054.png" o:title=""/> 1744 1747 </v:shape><![endif]--><![if !vml]><img border=0 width=423 height=225 1745 src="ParametricFitting_files/image05 5.png" v:shapes="Picture_x0020_41"><![endif]></span></p>1748 src="ParametricFitting_files/image054.png" v:shapes="Picture_x0020_41"><![endif]></span></p> 1746 1749 1747 1750 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> … … 1767 1770 type="#_x0000_t75" style='width:353.25pt;height:300.75pt;visibility:visible; 1768 1771 mso-wrap-style:square'> 1769 <v:imagedata src="ParametricFitting_files/image056.png" o:title="" croptop="2602f" 1770 cropbottom="4943f" cropleft="3024f" cropright="3097f"/> 1772 <v:imagedata src="ParametricFitting_files/image056.png" o:title=""/> 1771 1773 </v:shape><![endif]--><![if !vml]><img border=0 width=471 height=401 1772 src="ParametricFitting_files/image05 7.png" v:shapes="Picture_x0020_32"><![endif]></span></p>1774 src="ParametricFitting_files/image056.png" v:shapes="Picture_x0020_32"><![endif]></span></p> 1773 1775 1774 1776 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> … … 1851 1853 type="#_x0000_t75" style='width:315.75pt;height:168.75pt;visibility:visible; 1852 1854 mso-wrap-style:square'> 1853 <v:imagedata src="ParametricFitting_files/image058.png" o:title="" croptop="3691f" 1854 cropbottom="7919f" cropleft="2889f" cropright="3536f"/> 1855 <v:imagedata src="ParametricFitting_files/image058.png" o:title=""/> 1855 1856 </v:shape><![endif]--><![if !vml]><img border=0 width=421 height=225 1856 src="ParametricFitting_files/image05 9.png" v:shapes="Picture_x0020_42"><![endif]></span></p>1857 src="ParametricFitting_files/image058.png" v:shapes="Picture_x0020_42"><![endif]></span></p> 1857 1858 1858 1859 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> … … 1872 1873 type="#_x0000_t75" style='width:351pt;height:302.25pt;visibility:visible; 1873 1874 mso-wrap-style:square'> 1874 <v:imagedata src="ParametricFitting_files/image060.png" o:title="" croptop="2354f" 1875 cropbottom="4937f" cropleft="3349f" cropright="3198f"/> 1875 <v:imagedata src="ParametricFitting_files/image060.png" o:title=""/> 1876 1876 </v:shape><![endif]--><![if !vml]><img border=0 width=468 height=403 1877 src="ParametricFitting_files/image06 1.png" v:shapes="Picture_x0020_35"><![endif]></span></p>1877 src="ParametricFitting_files/image060.png" v:shapes="Picture_x0020_35"><![endif]></span></p> 1878 1878 1879 1879 <p class=MsoListParagraphCxSpLast><o:p> </o:p></p> … … 1941 1941 type="#_x0000_t75" style='width:332.25pt;height:186pt;visibility:visible; 1942 1942 mso-wrap-style:square'> 1943 <v:imagedata src="ParametricFitting_files/image062.png" o:title="" croptop="3190f" 1944 cropbottom="8105f" cropleft="3416f" cropright="3246f"/> 1943 <v:imagedata src="ParametricFitting_files/image062.png" o:title=""/> 1945 1944 </v:shape><![endif]--><![if !vml]><img border=0 width=443 height=248 1946 src="ParametricFitting_files/image06 3.png" v:shapes="Picture_x0020_44"><![endif]></span></p>1945 src="ParametricFitting_files/image062.png" v:shapes="Picture_x0020_44"><![endif]></span></p> 1947 1946 1948 1947 <p class=MsoNormal><o:p> </o:p></p> … … 1962 1961 type="#_x0000_t75" style='width:333.75pt;height:189pt;visibility:visible; 1963 1962 mso-wrap-style:square'> 1964 <v:imagedata src="ParametricFitting_files/image064.png" o:title="" croptop="2815f" 1965 cropbottom="7542f" cropleft="3074f" cropright="3244f"/> 1963 <v:imagedata src="ParametricFitting_files/image064.png" o:title=""/> 1966 1964 </v:shape><![endif]--><![if !vml]><img border=0 width=445 height=252 1967 src="ParametricFitting_files/image06 5.png" v:shapes="Picture_x0020_45"><![endif]></span><span1965 src="ParametricFitting_files/image064.png" v:shapes="Picture_x0020_45"><![endif]></span><span 1968 1966 style='mso-spacerun:yes'> </span></p> 1969 1967 … … 1979 1977 type="#_x0000_t75" style='width:348.75pt;height:302.25pt;visibility:visible; 1980 1978 mso-wrap-style:square'> 1981 <v:imagedata src="ParametricFitting_files/image066.png" o:title="" croptop="2231f" 1982 cropbottom="5061f" cropleft="3350f" cropright="3415f"/> 1979 <v:imagedata src="ParametricFitting_files/image066.png" o:title=""/> 1983 1980 </v:shape><![endif]--><![if !vml]><img border=0 width=465 height=403 1984 src="ParametricFitting_files/image06 7.png" v:shapes="Picture_x0020_48"><![endif]></span></p>1981 src="ParametricFitting_files/image066.png" v:shapes="Picture_x0020_48"><![endif]></span></p> 1985 1982 1986 1983 <p class=MsoListParagraphCxSpLast><o:p> </o:p></p> -
trunk/help/SequentialTutorial.htm
r1624 r1627 2595 2595 type="#_x0000_t75" style='width:349.5pt;height:300pt;visibility:visible; 2596 2596 mso-wrap-style:square'> 2597 <v:imagedata src="SequentialTutorial_files/image074.png" o:title="" croptop="1185f" 2598 cropbottom="2863f" cropleft="1936f" cropright="1768f"/> 2597 <v:imagedata src="SequentialTutorial_files/image074.png" o:title=""/> 2599 2598 </v:shape><![endif]--><![if !vml]><img border=0 width=466 height=400 2600 2599 src="SequentialTutorial_files/image074.png" v:shapes="Picture_x0020_42"><![endif]></span></p>
Note: See TracChangeset
for help on using the changeset viewer.