Changeset 4142 for trunk/imports/G2rfd_Panalytical.py
- Timestamp:
- Sep 10, 2019 3:15:35 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/imports/G2rfd_Panalytical.py
r4141 r4142 14 14 import GSASIIobj as G2obj 15 15 import GSASIIpath 16 sind = lambda x: np.sin(x*np.pi/180.) 16 17 GSASIIpath.SetVersionNumber("$Revision: $") 17 18 class Panalytical_ReaderClass(G2obj.ImportReflectometryData): … … 106 107 print('Panalytical read error: Intensities could not be located') 107 108 return False 108 self.instdict['wave'] = wave109 self.instdict['wave'] = float(wave.find(tag+'kAlpha1').text) 109 110 self.instdict['type'] = 'RXC' 110 111 self.reflectometryentry[0] = filename … … 112 113 N = y.shape[0] 113 114 x = np.linspace(startPos,endPos,N) 115 x = 4.*np.pi*sind(x/2.)/self.instdict['wave'] 114 116 w = np.where(y>0,1./y,1.) 115 117 self.reflectometrydata = [
Note: See TracChangeset
for help on using the changeset viewer.