Ignore:
Timestamp:
Oct 11, 2018 11:52:33 AM (3 years ago)
Author:
toby
Message:

read in qchi files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_FIT2D.py

    r3223 r3670  
    9393        inst = histblk['Instrument Parameters'][0]
    9494        self.Write(str(TreeName)[5:]) # drop 'PWDR '
    95         self.Write("Q")
     95        if 'Lam1' in inst:
     96            print('Do you really want to write a multi-wavelength pattern in Q?')
     97            lam = 0.
     98        else:
     99            lam = inst['Lam'][1]
     100        self.Write("Q{:>20.6f}".format(lam))
    96101        self.Write("Intensity")
    97102        self.Write("       "+str(len(histblk['Data'][0])))
Note: See TracChangeset for help on using the changeset viewer.