Ignore:
Timestamp:
Feb 5, 2021 10:14:23 PM (10 months ago)
Author:
toby
Message:

Cleanup deleted hists in Phase/data; improve help button location; mac: use default browser for help; G2compare filter projects by histogram

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIddataGUI.py

    r4783 r4801  
    10011001    keyList = G2frame.GetHistogramNames(['PWDR','HKLF'])
    10021002    UseList = data['Histograms']
     1003    # look for histgrams that are no longer in the project (should not happen!)
     1004    broken = [i for i in UseList if i not in keyList]
     1005    if broken:
     1006        msg = 'Removing histogram(s) referenced in this phase that are no longer in project:\n\n'
     1007        for i,j in enumerate(broken):
     1008            if i > 0: msg += ', '
     1009            msg += j
     1010            del data['Histograms'][j]
     1011        G2G.G2MessageBox(G2frame,msg,'Removing bad histograms')
    10031012    if UseList:
    10041013        G2frame.dataWindow.DataMenu.Enable(G2G.wxID_DATADELETE,True)
Note: See TracChangeset for help on using the changeset viewer.