Changeset 1238
- Timestamp:
- Mar 5, 2014 9:59:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIstrMain.py
r1143 r1238 284 284 newVaryList[i] = item 285 285 if newVaryList != SeqResult['varyList']: 286 print newVaryList 287 print SeqResult['varyList'] 286 #print 'histogram',histogram,len(newVaryList),'variables' 287 #print newVaryList 288 #print 'previous',len(SeqResult['varyList']),'variables' 289 #print SeqResult['varyList'] 288 290 print '**** ERROR - variable list for this histogram does not match previous' 291 print '\ncurrent histogram',histogram,'has',len(newVaryList),'variables' 292 combined = list(set(SeqResult['varyList']+newVaryList)) 293 c = [var for var in combined if var not in newVaryList] 294 p = [var for var in combined if var not in SeqResult['varyList']] 295 line = 'Variables in previous but not in current: ' 296 if c: 297 for var in c: 298 if len(line) > 100: 299 print line 300 line = ' ' 301 line += var + ', ' 302 else: 303 line += 'none' 304 print line 305 print '\nPrevious refinement has',len(SeqResult['varyList']),'variables' 306 line = 'Variables in current but not in previous: ' 307 if p: 308 for var in p: 309 if len(line) > 100: 310 print line 311 line = ' ' 312 line += var + ', ' 313 else: 314 line += 'none' 315 print line 289 316 raise Exception 290 317 parmDict.update(phaseDict) … … 308 335 #print G2mv.VarRemapShow(varyList) 309 336 G2mv.Map2Dict(parmDict,varyList) 337 print 'parmDict:',parmDict ######### show dict just before refinement 310 338 Rvals = {} 311 339 while True:
Note: See TracChangeset
for help on using the changeset viewer.