Changeset 4072 for trunk/exports


Ignore:
Timestamp:
Jul 26, 2019 8:37:07 AM (2 years ago)
Author:
vondreele
Message:

fix a missing G2frame.PickId? problem in G2imgGUI
fix SAS plotting issues with background subtraction
fix SAS errors in Spheroid, Schulz & Gauss models
fix of fxye export for TOF data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_pwdr.py

    r4071 r4072  
    7272        self.Write(TreeName[5:])
    7373        if prmname: self.Write('Instrument parameter file:'+os.path.split(prmname)[1])
    74         x = 100*np.array(histblk['Data'][0])
     74        x = np.array(histblk['Data'][0])
     75        if 'C' in histblk['Instrument Parameters'][0]['Type'][0]:
     76            x *= 100.
     77        else:
     78            cw = np.diff(x)
     79            x[:-1] += cw
    7580        # convert weights to sigmas; use largest weight as minimum esd
    7681        s = np.sqrt(np.maximum(0.,np.array(histblk['Data'][2])))
Note: See TracChangeset for help on using the changeset viewer.