Changeset 1111
- Timestamp:
- Oct 16, 2013 3:44:32 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIstrMath.py
r1110 r1111 572 572 else: #'X' 573 573 refDict['FF'][iref] = G2el.getFFvalues(FFtables,SQ) 574 for i,El in enumerate(Tdata): 575 FF[i] = refDict['FF'][iref][El] 574 FF = [refDict['FF'][iref][El] for El in Tdata] 576 575 Uniq = np.inner(H,SGMT) 577 576 Phi = np.inner(H,SGT) … … 628 627 dBabdA = np.exp(-parmDict[phfx+'BabU']*SQfactor) 629 628 Bab = parmDict[phfx+'BabA']*dBabdA 630 for i,El in enumerate(Tdata): 631 FF[i] = refDict['FF'][iref][El] 629 FF = [refDict['FF'][iref][El] for El in Tdata] 632 630 Uniq = np.inner(H,SGMT) 633 631 Phi = np.inner(H,SGT) -
trunk/testDeriv.py
r1077 r1111 1 #testGSASIIstruct.py 1 # -*- coding: utf-8 -*- 2 #testDeriv.py 3 ''' 4 Use this to check derivatives used in structure least squares refinement. To use set DEBUG=True 5 in GSASIIstrMain.py (line 22 as of version 1110), run the least squares - one cycle is sufficient. 6 Do the "Save Results"; this will write the file testDeriv.dat in the local directory7. 7 Run this program to see plots of derivatives for all parameters refined in the last least squares. 8 Shown will be numerical derivatives generated over all observations (including penalty terms) and the 9 corresponding analytical ones produced in the least squares. They should match. 10 ----------------------------------------- 11 ''' 2 12 3 13 import os … … 126 136 Size[1] = max(Size[1],290) + 35 127 137 self.testDerivPanel.SetScrollbars(10,10,Size[0]/10-4,Size[1]/10-1) 128 print Size129 138 self.testDerivPanel.SetSize(Size) 130 139
Note: See TracChangeset
for help on using the changeset viewer.