Changeset 3577 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Aug 30, 2018 4:49:24 PM (3 years ago)
Author:
vondreele
Message:

delete MAXMAGN - not using it any more
fix (maybe) mag constraints; works for orthogonal axes
fix bug in ReadPowerInstprm?
spelling of Levenberg!
fixes to mag structure from Bilbao stuff
set dmin to be min 1A for UnitCell? show reflections
fix Latt2text to show '-' & Trans2text
fix ext test in GetHistogramPhaseData? for mag structures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r3575 r3577  
    27652765    else:
    27662766        difC = Inst['difC'][1]
    2767         dmin = G2lat.Pos2dsp(Inst,Limits[0])
     2767        dmin = max(1.0,G2lat.Pos2dsp(Inst,Limits[0]))
    27682768   
    27692769    def SetLattice(controls):
     
    30693069        Cell = Phase['General']['Cell']
    30703070        SGData = Phase['General']['SGData']
     3071        if 'mono' in SGData['SGSys']:
     3072            SpGrp = G2spc.fixMono(SGData['SpGrp'])
     3073            if SpGrp == None:
     3074                wx.MessageBox('Unusable space group',caption='Monoclinic '+SGData['SpGrp']+' not usable here',style=wx.ICON_EXCLAMATION)
     3075                return
     3076        controls[13] = SpGrp
    30713077        controls[4] = 1
    30723078        controls[5] = (SGData['SGLatt']+SGData['SGLaue']).replace('-','')
     3079        if controls[5][1:] == 'm3': controls[5] += 'm'
    30733080        if 'R' in controls[5]: controls[5] = 'R3-H'
    30743081        controls[6:13] = Cell[1:8]
    3075         controls[13] = SGData['SpGrp']
     3082       
    30763083        if 'N' in Inst['Type'][0]:
    30773084            G2frame.dataWindow.RunSubGroupsMag.Enable(True)
     
    30813088       
    30823089    def ImportUnitCell(event):
    3083         controls,bravais,cells,dminx,ssopt = G2frame.GPXtree.GetItemPyData(UnitCellsId)
     3090        controls,bravais,cells,dminx,ssopt = G2frame.GPXtree.GetItemPyData(UnitCellsId)[:5]
    30843091        reqrdr = G2frame.dataWindow.ReImportMenuId.get(event.GetId())
    30853092        rdlist = G2frame.OnImportGeneric(reqrdr,
     
    30893096        Cell = rd.Phase['General']['Cell']
    30903097        SGData = rd.Phase['General']['SGData']
     3098        if '1 1' in SGData['SpGrp']:
     3099            wx.MessageBox('Unusable space group',caption='Monoclinic '+SGData['SpGrp']+' not usable here',style=wx.ICON_EXCLAMATION)
     3100            return
    30913101        controls[4] = 1
    30923102        controls[5] = (SGData['SGLatt']+SGData['SGLaue']).replace('-','')
     3103        if controls[5][1:] == 'm3': controls[5] += 'm'
    30933104        if 'R' in controls[5]: controls[5] = 'R3-H'
    30943105        controls[6:13] = Cell[1:8]
Note: See TracChangeset for help on using the changeset viewer.