Ignore:
Timestamp:
Nov 3, 2017 9:39:05 AM (6 years ago)
Author:
vondreele
Message:

Fix Jacobian refine bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMath.py

    r3136 r3149  
    40594059    Histograms,Phases,restraintDict,rigidbodyDict = HistoPhases
    40604060    dependentVars = G2mv.GetDependentVars()
    4061     dMdv = np.empty(0)
    40624061    histoList = list(Histograms.keys())
    40634062    histoList.sort()
     4063    First = True
    40644064    for histogram in histoList:
    40654065        if 'PWDR' in histogram[:4]:
     
    40874087        else:
    40884088            continue        #skip non-histogram entries
    4089         if len(dMdv):
     4089        if First:
     4090            dMdv = np.sqrt(wtFactor)*dMdvh
     4091            First = False
     4092        else:
    40904093            dMdv = np.concatenate((dMdv.T,np.sqrt(wtFactor)*dMdvh.T)).T
    4091         else:
    4092             dMdv = np.sqrt(wtFactor)*dMdvh
    40934094           
    40944095    GetFobsSq(Histograms,Phases,parmDict,calcControls)
Note: See TracChangeset for help on using the changeset viewer.