Changeset 4916 for trunk


Ignore:
Timestamp:
May 26, 2021 2:18:03 PM (4 months ago)
Author:
toby
Message:

fix Map OnPeaksMove? bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4914 r4916  
    1242312423            pgbar = wx.ProgressDialog('Move peaks','Map peak no. 0 processed',len(Ind)+1,
    1242412424                style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE)
    12425             for ind in Ind:
     12425            for i,ind in enumerate(Ind):
    1242612426                mag,x,y,z = mapPeaks[ind][:4]
    1242712427                AtomAdd(x,y,z,'H',Name='M '+'%d'%(int(100*mag/peakMax)))
    12428                 pgbar.Update(ind,'Map peak no. %d processed'%ind)
     12428                pgbar.Update(i+1,'Map peak no. %d processed'%ind)
    1242912429            pgbar.Destroy()
    1243012430            G2plt.PlotStructure(G2frame,data)
Note: See TracChangeset for help on using the changeset viewer.