@@ -2044,7 +2044,7 @@ def OnCellChange(event):
20442044 Types = [wg .GRID_VALUE_FLOAT + ':10,2' ,wg .GRID_VALUE_BOOL ,
20452045 wg .GRID_VALUE_FLOAT + ':12,5,g' ,wg .GRID_VALUE_BOOL ,
20462046 wg .GRID_VALUE_FLOAT + ':12,3,g' ,wg .GRID_VALUE_BOOL ,
2047- wg .GRID_VALUE_FLOAT + ':12,5 ,g' ,wg .GRID_VALUE_BOOL ]
2047+ wg .GRID_VALUE_FLOAT + ':12,3 ,g' ,wg .GRID_VALUE_BOOL ]
20482048 peaksTable = G2G .Table (data [1 ]['peaksList' ],rowLabels = rowLabels ,colLabels = colLabels ,types = Types )
20492049 peaksGrid = G2G .GSGrid (parent = G2frame .dataWindow )
20502050 peaksGrid .SetRowLabelSize (45 )
@@ -4825,45 +4825,45 @@ def TransformUnitCell(event):
48254825 OnHklShow (None ,indexFrom = ' Indexing from transformed unit cell & symmetry settings' )
48264826 wx .CallAfter (UpdateUnitCellsGrid ,G2frame ,data )
48274827
4828- def OnLatSym (event ):
4829- 'Run Bilbao PseudoLattice cell search'
4830- # look up a space group matching Bravais lattice (should not matter which one)
4831- bravaisSPG = {'Fm3m' :225 ,'Im3m' :229 ,'Pm3m' :221 ,'R3-H' :146 ,'P6/mmm' :191 ,
4832- 'I4/mmm' :139 ,'P4/mmm' :123 ,'Fmmm' :69 ,'Immm' :71 ,
4833- 'Cmmm' :65 ,'Pmmm' :47 ,'C2/m' :12 ,'P2/m' :10 ,'P1' :2 }
4834- pUCid = G2gd .GetGPXtreeItemId (G2frame ,G2frame .PatternId , 'Unit Cells List' )
4835- controls ,bravais ,cells ,dminx ,ssopt ,magcells = G2frame .GPXtree .GetItemPyData (pUCid )
4836- sgNum = bravaisSPG .get (controls [5 ],0 )
4837- if sgNum < 1 :
4838- wx .MessageBox ('Sorry, only standard cell settings are allowed, please transform axes' ,caption = 'Bilbao requires standard settings' ,style = wx .ICON_EXCLAMATION )
4839- return
4840- cell = controls [6 :12 ]
4841- tolerance = 5.
4842- dlg = G2G .SingleFloatDialog (G2frame ,'Tolerance' ,
4843- 'Enter angular tolerance for search' ,5.0 ,[.1 ,30. ],"%.1f" )
4844- if dlg .ShowModal () == wx .ID_OK :
4845- tolerance = dlg .GetValue ()
4846- dlg .Destroy ()
4847- else :
4848- dlg .Destroy ()
4849- return
4850- wx .MessageBox (' For use of PSEUDOLATTICE, please cite:\n \n ' +
4851- G2G .GetCite ('Bilbao: PSEUDOLATTICE' ),
4852- caption = 'Bilbao PSEUDOLATTICE' ,
4853- style = wx .ICON_INFORMATION )
4854- wx .BeginBusyCursor ()
4855- page = kSUB .subBilbaoCheckLattice (sgNum ,cell ,tolerance )
4856- wx .EndBusyCursor ()
4857- if not page : return
4858- cells .clear ()
4859- for i ,(cell ,mat ) in enumerate (kSUB .parseBilbaoCheckLattice (page )):
4860- cells .append ([])
4861- cells [- 1 ] += [mat ,0 ,16 ]
4862- cells [- 1 ] += cell
4863- cells [- 1 ] += [G2lat .calc_V (G2lat .cell2A (cell )),False ,False ]
4864- G2frame .GPXtree .SetItemPyData (pUCid ,data )
4865- G2frame .OnFileSave (event )
4866- wx .CallAfter (UpdateUnitCellsGrid ,G2frame ,data )
4828+ # def OnLatSym(event):
4829+ # 'Run Bilbao PseudoLattice cell search'
4830+ # # look up a space group matching Bravais lattice (should not matter which one)
4831+ # bravaisSPG = {'Fm3m':225,'Im3m':229,'Pm3m':221,'R3-H':146,'P6/mmm':191,
4832+ # 'I4/mmm':139,'P4/mmm':123,'Fmmm':69,'Immm':71,
4833+ # 'Cmmm':65,'Pmmm':47,'C2/m':12,'P2/m':10,'P1':2}
4834+ # pUCid = G2gd.GetGPXtreeItemId(G2frame,G2frame.PatternId, 'Unit Cells List')
4835+ # controls,bravais,cells,dminx,ssopt,magcells = G2frame.GPXtree.GetItemPyData(pUCid)
4836+ # sgNum = bravaisSPG.get(controls[5],0)
4837+ # if sgNum < 1:
4838+ # wx.MessageBox('Sorry, only standard cell settings are allowed, please transform axes',caption='Bilbao requires standard settings',style=wx.ICON_EXCLAMATION)
4839+ # return
4840+ # cell = controls[6:12]
4841+ # tolerance = 5.
4842+ # dlg = G2G.SingleFloatDialog(G2frame,'Tolerance',
4843+ # 'Enter angular tolerance for search',5.0,[.1,30.],"%.1f")
4844+ # if dlg.ShowModal() == wx.ID_OK:
4845+ # tolerance = dlg.GetValue()
4846+ # dlg.Destroy()
4847+ # else:
4848+ # dlg.Destroy()
4849+ # return
4850+ # wx.MessageBox(' For use of PSEUDOLATTICE, please cite:\n\n'+
4851+ # G2G.GetCite('Bilbao: PSEUDOLATTICE'),
4852+ # caption='Bilbao PSEUDOLATTICE',
4853+ # style=wx.ICON_INFORMATION)
4854+ # wx.BeginBusyCursor()
4855+ # page = kSUB.subBilbaoCheckLattice(sgNum,cell,tolerance)
4856+ # wx.EndBusyCursor()
4857+ # if not page: return
4858+ # cells.clear()
4859+ # for i,(cell,mat) in enumerate(kSUB.parseBilbaoCheckLattice(page)):
4860+ # cells.append([])
4861+ # cells[-1] += [mat,0,16]
4862+ # cells[-1] += cell
4863+ # cells[-1] += [G2lat.calc_V(G2lat.cell2A(cell)),False,False]
4864+ # G2frame.GPXtree.SetItemPyData(pUCid,data)
4865+ # G2frame.OnFileSave(event)
4866+ # wx.CallAfter(UpdateUnitCellsGrid,G2frame,data)
48674867
48684868 def OnNISTLatSym (event ):
48694869 'Run NIST*LATTICE cell search'
@@ -6990,7 +6990,7 @@ def OnRefreshKeep(event):
69906990 G2frame .Bind (wx .EVT_MENU , OnIndexPeaks , id = G2G .wxID_INDEXPEAKS )
69916991 G2frame .Bind (wx .EVT_MENU , OnRunSubs , id = G2G .wxID_RUNSUB )
69926992 G2frame .Bind (wx .EVT_MENU , OnRunSubsMag , id = G2G .wxID_RUNSUBMAG )
6993- G2frame .Bind (wx .EVT_MENU , OnLatSym , id = G2G .wxID_LATSYM )
6993+ # G2frame.Bind(wx.EVT_MENU, OnLatSym, id=G2G.wxID_LATSYM) # removed from site
69946994 G2frame .Bind (wx .EVT_MENU , OnNISTLatSym , id = G2G .wxID_NISTLATSYM )
69956995 G2frame .Bind (wx .EVT_MENU , CopyUnitCell , id = G2G .wxID_COPYCELL )
69966996 G2frame .Bind (wx .EVT_MENU , LoadUnitCell , id = G2G .wxID_LOADCELL )
0 commit comments