Changeset 24
- Timestamp:
- Feb 4, 2010 5:21:18 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r23 r24 15 15 else: 16 16 import wxmpl as wxmpl 17 18 # determine a binary path pased on the host OS and the python version 17 import pylab 18 19 # determine a binary path pased on the host OS and the python version, path is relative to 20 # location of this file 19 21 if sys.platform == "win32": 20 22 bindir = 'binwin%d.%d' % sys.version_info[0:2] … … 23 25 else: 24 26 bindir = 'bin' 25 if ospath.exists(ospath.abspath(bindir)): sys.path.insert(0,ospath.abspath(bindir)) 26 import pylab 27 27 if ospath.exists(ospath.join(sys.path[0],bindir)): sys.path.insert(0,ospath.join(sys.path[0],bindir)) 28 # load the GSAS routines 28 29 import GSASIIIO as G2IO 29 30 import GSASIIcomp as G2cmp -
trunk/GSASIIIO.py
r22 r24 443 443 import array as ar 444 444 import struct as st 445 import pack_f as pf 445 try: 446 import pack_f as pf 447 except: 448 msg = wx.MessageDialog(None, message="Unable to load the GSAS MAR image decompression, pack_f", 449 caption="Import Error", 450 style=wx.ICON_ERROR | wx.OK | wx.STAY_ON_TOP) 451 msg.ShowModal() 452 return None,None,None,None 453 446 454 print 'Read Mar345 file: ',filename 447 455 File = open(filename,'rb') -
trunk/GSASIIcomp.py
r9 r24 7 7 import numpy.linalg as nl 8 8 import GSASIIgrid as G2gd 9 import pypowder as pyp 9 try: 10 import pypowder as pyp 11 except: 12 # create an app to display the error, since we are still loading routines at this point 13 app = wx.App() 14 app.MainLoop() 15 msg = wx.MessageDialog(None, message="Unable to load the GSAS powder computation module, pypowder", 16 caption="Import Error", 17 style=wx.ICON_ERROR | wx.OK | wx.STAY_ON_TOP) 18 msg.ShowModal() 19 # this error is non-recoverable, so just quit 20 exit() 10 21 11 22 # trig functions in degrees
Note: See TracChangeset
for help on using the changeset viewer.