Skip to content

Commit a068a36

Browse files
committed
bring main up to date with master
2 parents c2441f8 + cc815b4 commit a068a36

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

GSASII/GSASIIstrMath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4842,7 +4842,7 @@ def errRefine(values,HistoPhases,parmDict,varylist,calcControls,pawleyLookup,dlg
48424842
W = wtFactor*w
48434843
wdy = -ma.sqrt(w[xB:xF])*(yd[xB:xF])
48444844
Histogram['Residuals']['Durbin-Watson'] = ma.sum(ma.diff(wdy)**2)/ma.sum(wdy**2)
4845-
wdy *= np.sqrt(wtFactor)
4845+
wdy *= ma.sqrt(wtFactor)
48464846
Histogram['Residuals']['Nobs'] = ma.count(x[xB:xF])
48474847
Nobs += Histogram['Residuals']['Nobs']
48484848
Histogram['Residuals']['sumwYo'] = ma.sum(W[xB:xF]*y[xB:xF]**2)
@@ -4867,7 +4867,7 @@ def errRefine(values,HistoPhases,parmDict,varylist,calcControls,pawleyLookup,dlg
48674867
elif not GoOn:
48684868
raise G2obj.G2RefineCancel('Cancel pressed')
48694869
#dlg.Raise()
4870-
M = np.concatenate((M,wdy))
4870+
M = ma.concatenate((M,wdy))
48714871
#end of PWDR processing
48724872
elif 'HKLF' in histogram[:4]:
48734873
Histogram = Histograms[histogram]

GSASII/imports/G2pwd_xye.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def ContentsValidator(self, filename):
8383
gotCcomment = True
8484
continue
8585
if S[0] in ["'",'#','!']:
86-
if 'q' in S and not self.Wave:
87-
wave = S.split()[1]
86+
if 'wavelength' in S and not self.Wave:
87+
wave = S.split()[2]
8888
if wave:
8989
try:
9090
self.Wave = float(wave)

0 commit comments

Comments
 (0)