Changeset 4522 for trunk/exports/G2export_pwdr.py
- Timestamp:
- Jul 16, 2020 9:30:05 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exports/G2export_pwdr.py
r4072 r4522 42 42 '''Write an instrument parameter file 43 43 ''' 44 if 'T' in Inst['Type'][0] : #can't do TOFiparm files44 if 'T' in Inst['Type'][0] or 'B' in Inst['Type'][0]: #can't do TOF or pink iparm files 45 45 return None 46 46 prmname = os.path.splitext(self.filename)[0] + '.prm' … … 73 73 if prmname: self.Write('Instrument parameter file:'+os.path.split(prmname)[1]) 74 74 x = np.array(histblk['Data'][0]) 75 if 'C' in histblk['Instrument Parameters'][0]['Type'][0]: 76 x *= 100. 77 else: 75 if 'T' in histblk['Instrument Parameters'][0]['Type'][0]: 78 76 cw = np.diff(x) 79 77 x[:-1] += cw 78 else: 79 x *= 100. 80 80 # convert weights to sigmas; use largest weight as minimum esd 81 81 s = np.sqrt(np.maximum(0.,np.array(histblk['Data'][2])))
Note: See TracChangeset
for help on using the changeset viewer.