Changeset 1250 for trunk/GSASIIsasd.py


Ignore:
Timestamp:
Mar 14, 2014 12:36:02 PM (8 years ago)
Author:
vondreele
Message:

fix cursor position in SAS size plot
sky default = -3
fix background handling in SASD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIsasd.py

    r1249 r1250  
    733733    Ibeg = np.searchsorted(Q,Qmin)
    734734    Ifin = np.searchsorted(Q,Qmax)
    735     if Back[1]:
    736         Ib = Back[0]
    737         Ic[Ibeg:Ifin] = Back[0]
    738735    Gmat = G_matrix(Q[Ibeg:Ifin],Bins,Contrast,shapes[Shape][0],shapes[Shape][1],args=Parms)
    739736    chisq,BinMag,Ic[Ibeg:Ifin] = MaxEnt_SB(Scale*Io[Ibeg:Ifin]-Back[0],
    740737        Scale/np.sqrt(wtFactor*wt[Ibeg:Ifin]),BinsBack,
    741738        data['Size']['MaxEnt']['Niter'],Gmat,report=True)
     739    if Back[1]:
     740        Ib = Back[0]
     741        Ic[Ibeg:Ifin] += Back[0]
    742742    print ' Final chi^2: %.3f'%(chisq)
    743743    Vols = shapes[Shape][1](Bins,Parms)
Note: See TracChangeset for help on using the changeset viewer.