Changeset 4697
- Timestamp:
- Jan 2, 2021 9:30:28 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimage.py
r4692 r4697 1284 1284 Ipix = IyInt(TA[0]) 1285 1285 GainMap[iBeg:iFin,jBeg:jFin] = image[iBeg:iFin,jBeg:jFin]/(Ipix*TA[3]) 1286 GainMap = np.nan_to_num(GainMap )1286 GainMap = np.nan_to_num(GainMap,1.0) 1287 1287 GainMap = sdif.gaussian_filter(GainMap,3.,order=0) 1288 1288 return 1./GainMap -
trunk/GSASIIimgGUI.py
r4692 r4697 181 181 Data['formatName'] = 'GSAS-II image' 182 182 Data['range'] = [(800,1200),[800,1200]] 183 GainMap = np.where(GainMap > 1200,1000,GainMap) 184 GainMap = np.where(GainMap < 800,1000,GainMap) 183 185 G2IO.PutG2Image(newimagefile,[],data,Npix,GainMap) 184 186 Id = G2frame.GPXtree.AppendItem(parent=G2frame.root,text='IMG '+os.path.split(newimagefile)[1]) -
trunk/GSASIIpwdGUI.py
r4695 r4697 65 65 Pwrm4 = unichr(0x207b)+unichr(0x2074) 66 66 Angstr = unichr(0x00c5) 67 superMinusOne = unichr(0xaf)+unichr(0xb9) 67 68 else: 68 69 GkDelta = chr(0x0394) … … 74 75 Pwrm4 = chr(0x207b)+chr(0x2074) 75 76 Angstr = chr(0x00c5) 77 superMinusOne = chr(0xaf)+chr(0xb9) 76 78 # trig functions in degrees 77 79 sind = lambda x: math.sin(x*math.pi/180.) … … 1393 1395 pwddata = G2frame.GPXtree.GetItemPyData(PatternId)[1] 1394 1396 auxPlot = G2pwd.MakeRDF(RDFcontrols,background,inst,pwddata) 1395 if '2' in platform.python_version_tuple()[0]:1396 superMinusOne = unichr(0xaf)+unichr(0xb9)1397 else:1398 superMinusOne = chr(0xaf)+chr(0xb9)1399 1397 for plot in auxPlot: 1400 1398 XY = np.array(plot[:2]) -
trunk/GSASIIrestrGUI.py
r4635 r4697 1171 1171 items = G2frame.dataWindow.RestraintEdit.GetMenuItems() 1172 1172 for item in items: 1173 if item.Get Label() in ['Change value']:1173 if item.GetItemLabelText() in ['Change value']: 1174 1174 item.Enable(False) 1175 1175
Note: See TracChangeset
for help on using the changeset viewer.