Ignore:
Timestamp:
Jan 31, 2019 10:29:12 AM (4 years ago)
Author:
toby
Message:

warn on numpy 1.16.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3806 r3807  
    377377    except:
    378378        pass
    379     #application.GetTopWindow().dataWindow.SendSizeEvent()
    380     #application.GetTopWindow().treePanel.SendSizeEvent()
    381     #application.GetTopWindow().SendSizeEvent()
     379    #application.GetTopWindow().SendSizeEvent()
    382380    application.GetTopWindow().Show(True)
    383381    application.MainLoop()
     
    391389    def OnInit(self):
    392390        '''Called automatically when the app is created.'''
    393         knownVersions = ['2.7','3.6','3.7']
     391        knownVersions = ['2.7','3.6','3.7','3.8']
    394392        if platform.python_version()[:3] not in knownVersions:
    395393            dlg = wx.MessageDialog(None,
     
    405403        # save the current package versions
    406404        self.main.PackageVersions = G2fil.get_python_versions([wx, mpl, np, sp, ogl])
    407        
     405        if np.__version__ == '1.16.0':
     406            wx.CallLater(100,self.warnNumpyVersion)
    408407        return True
     408    def warnNumpyVersion(self):
     409        dlg = wx.MessageDialog(self.main,
     410                'version '+ np.__version__ +
     411                ' of numpy produces .gpx files that are not compatible with older versions: please upgrade or downgrade numpy to avoid this version',
     412                'numpy Warning',wx.OK)
     413        try:
     414            dlg.CenterOnParent()
     415            dlg.ShowModal()
     416        finally:
     417            dlg.Destroy()
     418   
    409419    # def MacOpenFile(self, filename):
    410420    #     '''Called on Mac every time a file is dropped on the app when it is running,
Note: See TracChangeset for help on using the changeset viewer.