Skip to content

Commit 4bb7fa5

Browse files
committed
improve error message on Ouch 8
1 parent 7818f96 commit 4bb7fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GSASII/GSASIIstrIO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3113,7 +3113,7 @@ def PrintBabinet(hapData):
31133113
refList.append([h,k,l,mul,d, pos,0.0,0.0,0.0,randI*StartI, 0.0,0.0])
31143114
# ... sig,gam,fotsq,fctsq, phase,icorr
31153115
if len(refList) == 0:
3116-
raise G2obj.G2Exception(' Ouch #8: no reflections in data range - rethink PWDR limits')
3116+
raise G2obj.G2Exception(f'Ouch #8: no reflections in data range.\nRethink PWDR limits for phase {phase!r} and histogram {histogram!r}')
31173117
Histogram['Reflection Lists'][phase] = {'RefList':np.array(refList),'FF':{},'Type':inst['Type'][0],'Super':ifSuper}
31183118
elif 'HKLF' in histogram:
31193119
inst = Histogram['Instrument Parameters'][0]

0 commit comments

Comments
 (0)