Changeset 2086
- Timestamp:
- Dec 8, 2015 2:18:46 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIimgGUI.py ¶
r2084 r2086 2017 2017 dist = controlsDict['distance'] 2018 2018 interpDict,imgctrl,immask = self.Evaluator(dist) # interpolated calibration values 2019 if GSASIIpath.GetConfigValue('debug'):2020 2019 #if GSASIIpath.GetConfigValue('debug'): 2020 print 'interpolated: ',interpDict 2021 2021 self.ImageControls = ReadControls(imgctrl) 2022 2022 self.ImageControls.update(interpDict) … … 2570 2570 fil = '(none)' 2571 2571 try: 2572 dlg = wx.FileDialog( G2frame, 'Select mask or control file to add (Press cancel if none)',2572 dlg = wx.FileDialog(self, 'Select mask or control file to add (Press cancel if none)', 2573 2573 style=wx.OPEN, 2574 2574 wildcard='Add GSAS-II mask file (.immask)|*.immask|add image control file (.imctrl)|*.imctrl') -
TabularUnified trunk/imports/G2img_1TIF.py ¶
r2068 r2086 96 96 for line in head: 97 97 line = line.strip() 98 if 'dataType=' in line: 98 if '=' not in line: continue 99 if 'dataType' in line: 99 100 dataType = int(line.split('=')[1]) 101 elif 'wavelength' in line.lower(): 102 wavelength = float(line.split('=')[1]) 103 elif 'distance' in line.lower(): 104 distance = float(line.split('=')[1]) 100 105 Meta.close() 101 106 except IOError:
Note: See TracChangeset
for help on using the changeset viewer.