Changeset 3908 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Apr 18, 2019 4:30:44 PM (3 years ago)
Author:
vondreele
Message:

avoid map search finding negatives unless delt-f or neutron data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3907 r3908  
    92069206            try:
    92079207                peaks,mags,dzeros,dcents = G2mth.SearchMap(generalData,drawingData)
    9208                 npeaks,nmags,ndzeros,ndcents = G2mth.SearchMap(generalData,drawingData,Neg=True)
    9209                 peaks = np.concatenate((peaks,npeaks))
    9210                 mags = np.concatenate((mags,nmags))
    9211                 dzeros = np.concatenate((dzeros,ndzeros))
    9212                 dcents = np.concatenate((dcents,ndcents))
     9208                if mapData['MapType'] in ['delt-F',] or 'N' in mapData['Type']:
     9209                    npeaks,nmags,ndzeros,ndcents = G2mth.SearchMap(generalData,drawingData,Neg=True)
     9210                    peaks = np.concatenate((peaks,npeaks))
     9211                    mags = np.concatenate((mags,nmags))
     9212                    dzeros = np.concatenate((dzeros,ndzeros))
     9213                    dcents = np.concatenate((dcents,ndcents))
    92139214            finally:
    92149215                wx.EndBusyCursor()
Note: See TracChangeset for help on using the changeset viewer.