Changeset 2669 for trunk/GSASII.py


Ignore:
Timestamp:
Jan 28, 2017 11:02:40 AM (5 years ago)
Author:
vondreele
Message:

set lower limit selection in TOF patterns to be >= 0.4A dspacing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2667 r2669  
    16201620            Tmin = min(rd.powderdata[0])
    16211621            Tmax = max(rd.powderdata[0])
     1622            Tmin1 = Tmin
     1623            if 'NT' in Iparm1['Type'][0] and G2lat.Pos2dsp(Iparm1,Tmin) < 0.4:               
     1624                Tmin1 = G2lat.Dsp2pos(Iparm1,0.4)
    16221625            self.PatternTree.SetItemPyData(
    16231626                self.PatternTree.AppendItem(Id,text='Limits'),
    1624                 rd.pwdparms.get('Limits',[(Tmin,Tmax),[Tmin,Tmax]])
     1627                rd.pwdparms.get('Limits',[(Tmin,Tmax),[Tmin1,Tmax]])
    16251628                )
    16261629            self.PatternId = G2gd.GetPatternTreeItemId(self,Id,'Limits')
Note: See TracChangeset for help on using the changeset viewer.