Skip to content

Commit dac992f

Browse files
committed
add some debug prints as diagnostics for #282
1 parent 7ef8303 commit dac992f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GSASII/GSASIIdataGUI.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,6 +1941,7 @@ def OnImportPowder(self,event):
19411941
finally:
19421942
del Iparm1['CorrectionCode']
19431943
rd.Sample['ranId'] = valuesdict['ranId'] # this should be removed someday
1944+
if GSASIIpath.GetConfigValue('debug'): print('crash debug: read complete, adding to tree')
19441945
self.GPXtree.SetItemPyData(Id,[valuesdict,rd.powderdata])
19451946
self.GPXtree.SetItemPyData(self.GPXtree.AppendItem(Id,text='Comments'),rd.comments)
19461947
Tmin = min(rd.powderdata[0])
@@ -1986,9 +1987,11 @@ def OnImportPowder(self,event):
19861987
else:
19871988
# there are no break statements in this while loop so these are always run:
19881989
self.EnablePlot = True
1990+
if GSASIIpath.GetConfigValue('debug'): print('crash debug: before Expand')
19891991
if Id:
19901992
self.GPXtree.Expand(Id)
19911993
self.GPXtree.SelectItem(Id) # perhaps this is better as a CallAfter (See #282)
1994+
if GSASIIpath.GetConfigValue('debug'): print('crash debug: after Select Item')
19921995

19931996
G2fil.CleanupFromZip('instprm',self.cleanupList)
19941997
if not newHistList: return # somehow, no new histograms

0 commit comments

Comments
 (0)