Skip to content

Commit cc815b4

Browse files
committed
fix excluded regions problem - wrong concatenate used for M
1 parent 8e1bf14 commit cc815b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GSASII/GSASIIstrMath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4835,7 +4835,7 @@ def errRefine(values,HistoPhases,parmDict,varylist,calcControls,pawleyLookup,dlg
48354835
W = wtFactor*w
48364836
wdy = -ma.sqrt(w[xB:xF])*(yd[xB:xF])
48374837
Histogram['Residuals']['Durbin-Watson'] = ma.sum(ma.diff(wdy)**2)/ma.sum(wdy**2)
4838-
wdy *= np.sqrt(wtFactor)
4838+
wdy *= ma.sqrt(wtFactor)
48394839
Histogram['Residuals']['Nobs'] = ma.count(x[xB:xF])
48404840
Nobs += Histogram['Residuals']['Nobs']
48414841
Histogram['Residuals']['sumwYo'] = ma.sum(W[xB:xF]*y[xB:xF]**2)
@@ -4860,7 +4860,7 @@ def errRefine(values,HistoPhases,parmDict,varylist,calcControls,pawleyLookup,dlg
48604860
elif not GoOn:
48614861
raise G2obj.G2RefineCancel('Cancel pressed')
48624862
#dlg.Raise()
4863-
M = np.concatenate((M,wdy))
4863+
M = ma.concatenate((M,wdy))
48644864
#end of PWDR processing
48654865
elif 'HKLF' in histogram[:4]:
48664866
Histogram = Histograms[histogram]

0 commit comments

Comments
 (0)