Changeset 3795 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Jan 24, 2019 12:14:33 PM (3 years ago)
Author:
vondreele
Message:

fix space group & incommensurate space group displays for mag. incomensurate cases
disable cell refine in Unit Cell List if no peaks
another shot at incommensurate mag. structure factor calc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r3787 r3795  
    34203420        PatternId = G2frame.PatternId
    34213421        peaks = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,PatternId, 'Index Peak List'))
    3422         if not len(peaks[0]):
    3423             G2frame.ErrorDialog('No peaks!', 'Nothing to refine!')
    3424             return       
    34253422        print (' Refine cell')
    34263423        controls,bravais,cells,dminx,ssopt,magcells = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,PatternId, 'Unit Cells List'))
     
    41014098        G2frame.dataWindow.IndexPeaks.Enable(True)
    41024099    G2frame.dataWindow.RefineCell.Enable(False)
    4103     if controls[12] > 1.0:                               #if a "real" volume (i.e. not default)
     4100    if controls[12] > 1.0 and len(peaks[0]):             #if a "real" volume (i.e. not default) and peaks
    41044101        G2frame.dataWindow.RefineCell.Enable(True)   
    41054102    G2frame.dataWindow.CopyCell.Enable(False)
Note: See TracChangeset for help on using the changeset viewer.