Changeset 1204 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Jan 22, 2014 2:41:42 PM (8 years ago)
Author:
vondreele
Message:

SASD now in q only (not 2-theta); fix minor bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r1203 r1204  
    4343DEBUG = False       #=True for various prints
    4444TRANSP = False      #=true to transpose images for testing
     45npsind = lambda x: np.sin(x*np.pi/180.)
    4546
    4647def sfloat(S):
     
    831832    azms = G2frame.Integrate[1]
    832833    X = G2frame.Integrate[2][:-1]
    833     Xminmax = [X[0],X[-1]]
    834834    N = len(X)
    835835    Id = G2frame.PatternTree.GetItemParent(PickId)
     
    843843        names = ['Type','Lam','Zero','Azimuth']
    844844        codes = [0 for i in range(4)]
     845        X = 4.*np.pi*npsind(X/2.)/data['wavelength']    #convert to q
     846    Xminmax = [X[0],X[-1]]
    845847    LRazm = data['LRazimuth']
    846848    Azms = []
Note: See TracChangeset for help on using the changeset viewer.