source: trunk/GSASIIsolve.py @ 927

Last change on this file since 927 was 927, checked in by vondreele, 9 years ago

more G2str fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Author Revision URL Id
File size: 1.4 KB
Line 
1# -*- coding: utf-8 -*-
2#GSASIIsolve - structure solving routines
3########### SVN repository information ###################
4# $Date: 2013-05-20 16:06:42 +0000 (Mon, 20 May 2013) $
5# $Author: vondreele $
6# $Revision: 927 $
7# $URL: trunk/GSASIIsolve.py $
8# $Id: GSASIIsolve.py 927 2013-05-20 16:06:42Z vondreele $
9########### SVN repository information ###################
10import sys
11import os.path as ospath
12import numpy as np
13import cPickle
14import time
15import math
16import GSASIIpath
17GSASIIpath.SetVersionNumber("$Revision: 927 $")
18import GSASIIElem as G2el
19import GSASIIlattice as G2lat
20import GSASIIspc as G2spc
21import GSASIIstrIO as G2stIO
22
23def ShowBanner():
24    print 80*'*'
25    print '    General Structure Analysis System-II Crystal Structure Solution'
26    print '              by Robert B. Von Dreele & Brian H. Toby'
27    print '                Argonne National Laboratory(C), 2010'
28    print ' This product includes software developed by the UChicago Argonne, LLC,' 
29    print '            as Operator of Argonne National Laboratory.'
30    print 80*'*','\n'
31   
32def ShowControls(Controls):
33    print ' Controls:'
34   
35def Solve(GPXfile):
36    ShowBanner()
37    Controls = G2stIO.GetControls(GPXfile)
38    ShowControls(Controls)
39       
40def main():
41    arg = sys.argv
42    if len(arg) > 1:
43        GPXfile = arg[1]
44        if not ospath.exists(GPXfile):
45            print 'ERROR - ',GPXfile," doesn't exist!"
46            exit()
47        GPXpath = ospath.dirname(arg[1])
48        Solve(GPXfile)
49    else:
50        print 'ERROR - missing filename'
51        exit()
52    print "Done"
53         
54if __name__ == '__main__':
55    main()
56
Note: See TracBrowser for help on using the repository browser.