Changeset 2347
- Timestamp:
- Jun 27, 2016 9:48:51 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrls.py
r2295 r2347 4113 4113 wx.EndBusyCursor() 4114 4114 raise Exception 4115 if not GSASIIpath.svnInstallDir(baseURL+"/MT",fullpath): 4115 if not GSASIIpath.svnInstallDir(baseURL+"/MT",fullpath): #this could load specific requested tutorial directory 4116 4116 wx.EndBusyCursor() 4117 4117 print("Problem transferring empty directory from web") … … 4151 4151 if not os.path.exists(pth): 4152 4152 try: 4153 os.makedirs(pth) 4153 os.makedirs(pth) #failing for no obvious reason 4154 4154 except OSError: 4155 4155 msg = 'The selected directory is not valid.\n\t' -
trunk/GSASIIpath.py
r2337 r2347 444 444 print("Loading files from "+URL) 445 445 s = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 446 out,err = s.communicate() 446 out,err = s.communicate() #this fails too easily 447 447 if err: 448 448 print(60*"=") -
trunk/ReadMarCCDFrame.py
r1299 r2347 284 284 self.TIFFresolutionUnit = IFD[296][2][0] # 3 = centimeter 285 285 self.byteDepth = self.TIFFbitDepth/8 286 self.arrayTypeCode = ['','B','H',' L'][self.byteDepth]286 self.arrayTypeCode = ['','B','H','I','I'][self.byteDepth] 287 287 # MarCCD specific header info 288 288 File.seek(IFD[34710][2][0]) -
trunk/imports/G2img_1TIF.py
r2299 r2347 164 164 # extract resonable distance from header 165 165 distance = (marFrame.startXtalToDetector+marFrame.endXtalToDetector)*5e-4 166 distance = (distance <= 0) and marFrame.xtalToDetector*1e-3 or distance166 distance = (distance <= marFrame.startXtalToDetector*5e-4) and marFrame.xtalToDetector*1e-3 or distance 167 167 distance = (distance <= 0) and None or distance 168 168 # extract resonable center from header … … 197 197 File.seek(4096) 198 198 print 'Read Pilatus tiff file: ',filename 199 image = ar.array(' L',File.read(4*Npix))199 image = ar.array('I',File.read(4*Npix)) 200 200 image = np.array(np.asarray(image),dtype=np.int32) 201 201 else: … … 211 211 File.seek(8) 212 212 print 'Read CHESS-detector tiff file: ',filename 213 image = np.array(ar.array(' L',File.read(4*Npix)),dtype=np.int32)213 image = np.array(ar.array('I',File.read(4*Npix)),dtype=np.int32) 214 214 elif 270 in IFD: 215 215 File.seek(IFD[270][2][0]) -
trunk/imports/G2pwd_CIF.py
r2342 r2347 261 261 ycf = ych[yi] 262 262 vl = [] 263 v2 = [] 263 264 for val in cf[blk].get(ycf,'?'): 264 265 v,e = cif.get_number_with_esd(val) 265 266 if v is None: # not parsed 266 267 vl.append(np.NaN) 268 v2.append(np.NaN) 267 269 else: 268 270 vl.append(v) 271 v2.append(max(e,1.0)) 269 272 y = np.array(vl) 273 w = 1./np.array(v2)**2 270 274 # weights 271 275 if sui == -1: … … 300 304 else: 301 305 vl.append(1./(e*e)) 302 w = np.array(vl)306 # w = np.array(vl) 303 307 # intensity modification factor 304 308 if modi >= 1:
Note: See TracChangeset
for help on using the changeset viewer.