Changeset 1955 for trunk/GSASIIspc.py


Ignore:
Timestamp:
Aug 11, 2015 9:35:20 AM (8 years ago)
Author:
vondreele
Message:

Add error message for TOF calibration if peak positions weren't fitted
fix a bug in SS structure factor calc.
put debug prints back in GetSSfxuinel; now only if debug=True

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIspc.py

    r1954 r1955  
    15191519                            fsc[i] = 0
    15201520                    FSC &= fsc
    1521 #                    print SSMT2text(ssop).replace(' ',''),sdet,ssdet,epsinv,fsc
     1521                    if debug: print SSMT2text(ssop).replace(' ',''),sdet,ssdet,epsinv,fsc
    15221522        n = -1
    15231523        for i,F in enumerate(FSC):
     
    16101610                            xsc[:2] = 0
    16111611            XSC &= xsc
    1612 #            print SSMT2text(ssop).replace(' ',''),sdet,ssdet,epsinv,xsc
     1612            if debug: print SSMT2text(ssop).replace(' ',''),sdet,ssdet,epsinv,xsc
    16131613        if waveType == 'Fourier':
    16141614            n = -1
    1615 #            print XSC
     1615            if debug: print XSC
    16161616            for i,X in enumerate(XSC):
    16171617                if X:
     
    17161716                            usc[6:8] = 0
    17171717                       
    1718 #                print SSMT2text(ssop).replace(' ',''),sdet,ssdet,epsinv,usc
     1718                if debug: print SSMT2text(ssop).replace(' ',''),sdet,ssdet,epsinv,usc
    17191719            USC &= usc
    1720 #        print USC
     1720        if debug: print USC
    17211721        if not np.any(dtau%.5):
    17221722            n = -1
     
    17291729        return CSI,dU,dUTP
    17301730       
    1731 #    print 'super space group: ',SSGData['SSpGrp']
     1731    if debug: print 'super space group: ',SSGData['SSpGrp']
    17321732    CSI = {'Sfrac':[[[1,0],[2,0]],[[1.,0.],[1.,0.]]],
    17331733        'Spos':[[[1,0,0],[2,0,0],[3,0,0], [4,0,0],[5,0,0],[6,0,0]],
     
    17441744    laue = SGData['SGLaue']
    17451745    siteSym = SytSym(XYZ,SGData)[0].strip()
    1746 #    print 'siteSym: ',siteSym
     1746    if debug: print 'siteSym: ',siteSym
    17471747    if siteSym == '1':   #"1" site symmetry
    17481748        if debug:
     
    17811781    OpText =  [MT2text(s).replace(' ','') for s in Sop]         #debug?
    17821782    SSOpText = [SSMT2text(ss).replace(' ','') for ss in SSop]   #debug?
    1783 #    print 'special pos super operators: ',SSOpText
     1783    if debug: print 'special pos super operators: ',SSOpText
    17841784    #setup displacement arrays
    17851785    tau = np.linspace(-1,1,49,True)
Note: See TracChangeset for help on using the changeset viewer.