Changeset 694
- Timestamp:
- Jul 24, 2012 2:14:17 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImapvars.py
r693 r694 314 314 errmsg += '\nParameter '+var+" is Fixed and used in a constraint:\n\t" 315 315 errmsg += FormatConstraint(constrDict[rel],fixedList[rel])+"\n" 316 if var in equivVarList:317 errmsg += '\nParameter '+var+" is Equivalenced and used in a constraint:\n\t"318 errmsg += FormatConstraint(constrDict[rel],fixedList[rel])+"\n"316 # if var in equivVarList: 317 # errmsg += '\nParameter '+var+" is Equivalenced and used in a constraint:\n\t" 318 # errmsg += FormatConstraint(constrDict[rel],fixedList[rel])+"\n" 319 319 if varied > 0 and varied != len(constrDict[rel]): 320 320 warnmsg += "\nNot all variables refined in constraint:\n\t" … … 498 498 equivVarList = list(set(indepVarList).union(set(depVarList))) 499 499 #print 'equivVarList',equivVarList 500 inboth = set(fixedVarList).intersection(set(equivVarList))501 if len(inboth) > 0:502 msg += "\nError! The following variables are used in both Equivalence and Fixed constraints:\n"503 s = ''504 for var in sorted(inboth):505 if s != "": s+= ", "506 s += str(var)507 msg += '\t'+ s + '\n'508 500 # inboth = set(fixedVarList).intersection(set(equivVarList)) 501 # if len(inboth) > 0: 502 # msg += "\nError! The following variables are used in both Equivalence and Fixed constraints:\n" 503 # s = '' 504 # for var in sorted(inboth): 505 # if s != "": s+= ", " 506 # s += str(var) 507 # msg += '\t'+ s + '\n' 508 # 509 509 # scan through parameters in each relationship. Are all varied? If only some are 510 510 # varied, create an error message. … … 526 526 msg += '\nError: parameter '+var+" is Fixed and used in a constraint:\n\t" 527 527 msg += FormatConstraint(constrDict[rel],fixedList[rel])+"\n" 528 if var in equivVarList:529 msg += '\nError: parameter '+var+" is Equivalenced and used in a constraint:\n\t"530 msg += FormatConstraint(constrDict[rel],fixedList[rel])+"\n"528 # if var in equivVarList: 529 # msg += '\nError: parameter '+var+" is Equivalenced and used in a constraint:\n\t" 530 # msg += FormatConstraint(constrDict[rel],fixedList[rel])+"\n" 531 531 if varied > 0 and varied != len(constrDict[rel]): 532 532 msg += "\nNot all variables refined in constraint:\n\t" -
trunk/GSASIIpwdGUI.py
r688 r694 1095 1095 parms = [['Gonio. radius',' Goniometer radius(mm): ','%.2f',]] 1096 1096 if data['Type'] == 'Debye-Scherrer': 1097 parms += [['DisplaceX',u' Sample X displ acement(\xb5m): ','%.2f',],1098 ['DisplaceY',u' Sample Y displ acement(\xb5m): ','%.2f',],1097 parms += [['DisplaceX',u' Sample X displ. perp. to beam (\xb5m): ','%.2f',], 1098 ['DisplaceY',u' Sample Y displ. || to beam (\xb5m): ','%.2f',], 1099 1099 ['Absorption',u' Sample absorption(\xb5r): ','%.4f',],] 1100 1100 elif data['Type'] == 'Bragg-Brentano': … … 1411 1411 if ObjId < 3: 1412 1412 Obj.SetValue("%.5f"%(controls[6+ObjId])) 1413 1414 1413 else: 1415 1414 Obj.SetValue("%.3f"%(controls[6+ObjId])) -
trunk/GSASIIstruct.py
r693 r694 345 345 346 346 GPXback = GPXBackup(GPXfile,makeBack) 347 print '\n',135*'-'348 347 print 'Read from file:',GPXback 349 348 print 'Save to file :',GPXfile … … 382 381 def SetSeqResult(GPXfile,Histograms,SeqResult): 383 382 GPXback = GPXBackup(GPXfile) 384 print '\n',135*'-'385 383 print 'Read from file:',GPXback 386 384 print 'Save to file :',GPXfile … … 1407 1405 if Print: 1408 1406 if 'Scale' in PhFrExtPOSig: 1409 print >>pFile,' Phase fraction : %10. 4f, sig %10.4f'%(hapData['Scale'][0],PhFrExtPOSig['Scale'])1407 print >>pFile,' Phase fraction : %10.5f, sig %10.5f'%(hapData['Scale'][0],PhFrExtPOSig['Scale']) 1410 1408 if 'Extinction' in PhFrExtPOSig: 1411 1409 print >>pFile,' Extinction coeff: %10.4f, sig %10.4f'%(hapData['Extinction'][0],PhFrExtPOSig['Extinction']) … … 3309 3307 SetHistogramPhaseData(parmDict,sigDict,Phases,Histograms,pFile=printFile) 3310 3308 SetHistogramData(parmDict,sigDict,Histograms,pFile=printFile) 3311 G2mv.PrintIndependentVars(parmDict,varyList,sigDict,p rintFile)3309 G2mv.PrintIndependentVars(parmDict,varyList,sigDict,pFile=printFile) 3312 3310 SetUsedHistogramsAndPhases(GPXfile,Histograms,Phases,covData) 3313 3311 printFile.close()
Note: See TracChangeset
for help on using the changeset viewer.