Changeset 609


Ignore:
Timestamp:
May 9, 2012 11:15:44 AM (11 years ago)
Author:
vondreele
Message:

adding more tutorials & fix some uncovered bugs

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Exercises/fluroapatite/INST_XRY.PRM

    r606 r609  
    88INS  1PRCF1     3    8      0.01                                               
    99INS  1PRCF11   2.000000E+00  -2.000000E+00   5.000000E+00   0.100000E+00       
    10 INS  1PRCF12   0.000000E+00   0.000000E+00   0.150000E-01   0.150000E-01       
     10INS  1PRCF12   0.000000E+00   0.000000E+00   0.100000E-01   0.100000E-01       
  • trunk/GSASII.py

    r607 r609  
    8282    print "Max threads ",mkl.get_max_threads()
    8383except:
    84     print "MKL module not present"
     84    pass
     85#    print "MKL module not present"
    8586__version__ = '0.1.5'
    8687G2gd.__version__ = __version__
     
    815816                                    v = (v[0],v[2],v[4])
    816817                                    codes = [0,0,0,0]
     818                                    Sample['Type'] = 'Debye-Scherrer'               #default instrument type
    817819                                else:
    818820                                    names = ['Type','Lam1','Lam2','Zero','I(L2)/I(L1)','Polariz.','U','V','W','X','Y','SH/L','Azimuth']
    819821                                    codes = [0,0,0,0,0,0]
     822                                    Sample['Type'] = 'Bragg-Brentano'               #default instrument type
     823                                    Sample['Shift'] = [0.0,False]
     824                                    Sample['Transparency'] = [0.0,False]
    820825                                data.extend(v)
    821826                                v1 = Iparm['INS  1PRCF1 '].split()                                                 
     
    827832                                    azm = 0.0
    828833                                v = Iparm['INS  1PRCF12'].split()
    829                                 if v1[0] == 3:
    830                                     data.extend([float(v[0]),float(v[1]),float(v[2])+float(v[3],azm)])  #get LX, LY, S+H/L & azimuth
     834                                if v1[0] == '3':
     835                                    data.extend([float(v[0]),float(v[1]),float(v[2])+float(v[3]),azm])  #get LX, LY, S+H/L & azimuth
    831836                                else:
    832837                                    data.extend([0.0,0.0,0.002,azm])                                      #OK defaults if fxn #3 not 1st in iprm file
  • trunk/GSASIIIO.py

    r607 r609  
    8181            Iparm['INS  1PRCF1 '] = '    3    8      0.01                                                '
    8282            Iparm['INS  1PRCF11'] = '   2.000000E+00  -2.000000E+00   5.000000E+00   0.000000E+00        '
    83             Iparm['INS  1PRCF12'] = '   0.000000E+00   0.000000E+00   0.150000E-01   0.150000E-01        '
     83            Iparm['INS  1PRCF12'] = '   0.000000E+00   0.000000E+00   0.100000E-01   0.100000E-01        '
    8484        else:
    8585            Iparm = {}                                               #Assume 0.6A synchrotron data
     
    8888            Iparm['INS  1PRCF1 '] = '    3    8      0.01                                                '
    8989            Iparm['INS  1PRCF11'] = '   1.000000E+00  -1.000000E+00   0.300000E+00   0.000000E+00        '
    90             Iparm['INS  1PRCF12'] = '   0.000000E+00   0.000000E+00   0.100000E-01   0.100000E-01        '
     90            Iparm['INS  1PRCF12'] = '   0.000000E+00   0.000000E+00   0.100000E-02   0.100000E-02        '
    9191                       
    9292       
     
    101101            Iparm['INS  1PRCF1 '] = '    3    8      0.01                                                '
    102102            Iparm['INS  1PRCF11'] = '   2.000000E+00  -2.000000E+00   5.000000E+00   0.000000E+00        '
    103             Iparm['INS  1PRCF12'] = '   0.000000E+00   0.000000E+00   0.150000E-01   0.150000E-01        '
     103            Iparm['INS  1PRCF12'] = '   0.000000E+00   0.000000E+00   0.100000E-01   0.100000E-01        '
    104104    S = 1
    105105    Banks = []
  • trunk/GSASIIgrid.py

    r607 r609  
    3333htmlFrame = None
    3434if sys.platform.lower().startswith('win'):
    35 #    helpMode = 'browser'    # need a global control to set this
    36     helpMode = 'internal'    # need a global control to set this
     35    helpMode = 'browser'    # need a global control to set this
     36#    helpMode = 'internal'    # need a global control to set this
    3737else:
    3838    helpMode = 'browser'    # need a global control to set this
  • trunk/GSASIIphsGUI.py

    r584 r609  
    32603260###### Patch to add LGmix to Size & Mustrain
    32613261            if len(histData['Size'][1]) == 2:
    3262                 histData['Size'][1].append(0.6667)
     3262                histData['Size'][1].append(1.0)
    32633263                histData['Size'][2].append(False)
    3264                 histData['Mustrain'][1].append(0.6667)
     3264                histData['Mustrain'][1].append(1.0)
    32653265                histData['Mustrain'][2].append(False)
    32663266                UseList[item] = histData
     
    34233423                        UseList[histoName] = {'Histogram':histoName,'Show':False,
    34243424                            'Scale':[1.0,False],'Pref.Ori.':['MD',1.0,False,[0,0,1],0,{}],
    3425                             'Size':['isotropic',[4.,4.,0.66667],[False,False,False],[0,0,1],
     3425                            'Size':['isotropic',[4.,4.,1.0],[False,False,False],[0,0,1],
    34263426                                [4.,4.,4.,0.,0.,0.],6*[False,]],
    3427                             'Mustrain':['isotropic',[1000.0,1000.0,0.666667],[False,False,False],[0,0,1],
     3427                            'Mustrain':['isotropic',[1000.0,1000.0,1.0],[False,False,False],[0,0,1],
    34283428                                NShkl*[0.01,],NShkl*[False,]],
    34293429                            'HStrain':[NDij*[0.0,],NDij*[False,]],                         
  • trunk/GSASIIstruct.py

    r599 r609  
    32223222    Factor = DisAglCtls['Factors']
    32233223    Radii = dict(zip(DisAglCtls['AtomTypes'],zip(DisAglCtls['BondRadii'],DisAglCtls['AngleRadii'])))
    3224     Units = np.array([                   #is there a nicer way to make this?
    3225         [-1,-1,-1],[-1,-1,0],[-1,-1,1],[-1,0,-1],[-1,0,0],[-1,0,1],[-1,1,-1],[-1,1,0],[-1,1,1],
    3226         [0,-1,-1],[0,-1,0],[0,-1,1],[0,0,-1],[0,0,0],[0,0,1],[0,1,-1],[0,1,0],[0,1,1],
    3227         [1,-1,-1],[1,-1,0],[1,-1,1],[1,0,-1],[1,0,0],[1,0,1],[1,1,-1],[1,1,0],[1,1,1]])
     3224#    Units = np.array([                   #is there a nicer way to make this?
     3225#        [-1,-1,-1],[-1,-1,0],[-1,-1,1],[-1,0,-1],[-1,0,0],[-1,0,1],[-1,1,-1],[-1,1,0],[-1,1,1],
     3226#        [0,-1,-1],[0,-1,0],[0,-1,1],[0,0,-1],[0,0,0],[0,0,1],[0,1,-1],[0,1,0],[0,1,1],
     3227#        [1,-1,-1],[1,-1,0],[1,-1,1],[1,0,-1],[1,0,0],[1,0,1],[1,1,-1],[1,1,0],[1,1,1]])
     3228    indices = (-1,0,1)
     3229    Units = np.array([[h,k,l] for h in indices for k in indices for l in indices])
    32283230    origAtoms = DisAglData['OrigAtoms']
    32293231    targAtoms = DisAglData['TargAtoms']
Note: See TracChangeset for help on using the changeset viewer.