Changeset 1150
- Timestamp:
- Nov 24, 2013 9:08:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r1147 r1150 1639 1639 if 'ISODISTORT' not in data: 1640 1640 raise Exception,"Should not happen: 'ISODISTORT' not in data" 1641 if len(data.get('Histograms',[])) == 0: 1642 G2frame.ErrorDialog( 1643 'No data', 1644 'Sorry, this computation requires that a histogram first be added to the phase' 1645 ) 1646 return 1641 1647 def _onClose(event): 1642 1648 dlg.EndModal(wx.ID_CANCEL) … … 1652 1658 v = Ilbl[Ilbl.rfind('_')+1:] 1653 1659 pval = ISO['ParentStructure'][albl][['dx','dy','dz'].index(v)] 1654 cval = parmDict.get(var)[0] 1660 if var in parmDict: 1661 cval = parmDict[var][0] 1662 else: 1663 G2frame.ErrorDialog('Atom not found',"No value found for parameter "+str(var)) 1664 return 1655 1665 deltaList.append(cval-pval) 1656 1666 modeVals = np.inner(ISO['Var2ModeMatrix'],deltaList)
Note: See TracChangeset
for help on using the changeset viewer.