Ignore:
Timestamp:
Jul 16, 2020 9:30:05 AM (3 years ago)
Author:
vondreele
Message:

fix exporters for pink reflection data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_pwdr.py

    r4072 r4522  
    4242        '''Write an instrument parameter file
    4343        '''
    44         if 'T' in Inst['Type'][0]:      #can't do TOF iparm files
     44        if 'T' in Inst['Type'][0] or 'B' in Inst['Type'][0]:      #can't do TOF or pink iparm files
    4545            return None
    4646        prmname = os.path.splitext(self.filename)[0] + '.prm'
     
    7373        if prmname: self.Write('Instrument parameter file:'+os.path.split(prmname)[1])
    7474        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]:
    7876            cw = np.diff(x)
    7977            x[:-1] += cw
     78        else:
     79            x *= 100.
    8080        # convert weights to sigmas; use largest weight as minimum esd
    8181        s = np.sqrt(np.maximum(0.,np.array(histblk['Data'][2])))
Note: See TracChangeset for help on using the changeset viewer.