Changeset 485
- Timestamp:
- Feb 16, 2012 10:56:42 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/G2importphase.py
r484 r485 18 18 extensionlist=('.pdb','.ent','.PDB','.ENT'), 19 19 strictExtension=True, 20 formatName = 'PD F',20 formatName = 'PDB', 21 21 longFormatName = 'Original Protein Data Bank (.pdb file) import' 22 22 ) … … 32 32 except Exception as detail: 33 33 print 'PDB read error:',detail # for testing 34 traceback.print_exc(file=sys.stdout) 34 35 return False 35 36 -
trunk/GSASIIIO.py
r482 r485 1128 1128 if 'AT' in key[6:8]: 1129 1129 S = EXPphase[key] 1130 Atom = [ int(S[56:60]),S[50:54].strip().upper(),S[54:56],1130 Atom = [S[56:60],S[50:54].strip().upper(),S[54:56], 1131 1131 S[46:51].strip(),S[:8].strip(),'', 1132 1132 float(S[16:24]),float(S[24:32]),float(S[32:40]), … … 1193 1193 SpGrp = S[55:65] 1194 1194 E,SGData = G2spc.SpcGroup(SpGrp) 1195 if E: 1196 print ' ERROR in space group symbol ',SpGrp,' in file ',filename 1197 print ' N.B.: make sure spaces separate axial fields in symbol' 1195 while E: 1198 1196 print G2spc.SGErrors(E) 1199 return None 1197 dlg = wx.TextEntryDialog(None, 1198 SpGrp[:-1]+' is invalid \nN.B.: make sure spaces separate axial fields in symbol', 1199 'ERROR in space group symbol','',style=wx.OK) 1200 if dlg.ShowModal() == wx.ID_OK: 1201 SpGrp = dlg.GetValue() 1202 E,SGData = G2spc.SpcGroup(SpGrp) 1203 else: 1204 return None 1205 dlg.Destroy() 1200 1206 SGlines = G2spc.SGPrint(SGData) 1201 1207 for line in SGlines: print line … … 1208 1214 XYZ = [float(S[31:39]),float(S[39:47]),float(S[47:55])] 1209 1215 XYZ = np.inner(AB,XYZ) 1216 XYZ = np.where(abs(XYZ)<0.00001,0,XYZ) 1210 1217 SytSym,Mult = G2spc.SytSym(XYZ,SGData) 1211 1218 Uiso = float(S[61:67])/EightPiSq -
trunk/GSASIImath.py
r484 r485 457 457 458 458 sigVals = [-0.001,-0.01,-0.01] 459 sig = sigVals[M-3] 459 460 if 'covMatrix' in covData: 460 461 parmNames = [] 461 462 dx = .00001 462 463 N = M*3 463 sig = sigVals[M-3]464 464 dadx = np.zeros(N) 465 465 for i in range(N): -
trunk/GSASIIphsGUI.py
r484 r485 1893 1893 SetupDrawingData() 1894 1894 drawingData = data['Drawing'] 1895 print 'Rotation:',drawingData['Rotation']1896 1895 if generalData['Type'] == 'nuclear': 1897 1896 pickChoice = ['Atoms','Bonds','Torsions','Planes']
Note: See TracChangeset
for help on using the changeset viewer.