Changeset 777


Ignore:
Timestamp:
Oct 3, 2012 5:02:02 PM (9 years ago)
Author:
vondreele
Message:

fix problem with missing peakMax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r766 r777  
    23242324    if 'Map Peaks' in data:
    23252325        mapPeaks = np.array(data['Map Peaks'])
    2326         peakMax = np.max(mapPeaks.T[0])
     2326        peakMax = 100.
     2327        if len(mapPeaks):
     2328            peakMax = np.max(mapPeaks.T[0])
    23272329    drawingData = data['Drawing']
    23282330    try:
Note: See TracChangeset for help on using the changeset viewer.