Ignore:
Timestamp:
May 1, 2008 3:35:31 PM (14 years ago)
Author:
srkline
Message:

fixed bug in USANS_RecalculateSlope that was looking for the last loaded USANS file when it is supposed to be looking for the selected data set. Global is now reset as needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/SANS/Analysis/Models/USANS_SlitSmearing_v40.ipf

    r325 r347  
    1616// 
    1717 
     18// called only by the main file loader 
     19// 
    1820Function USANS_CalcWeights(basestr, dQv) 
    1921        String basestr 
     
    2224        Variable/G USANS_N=numpnts($(basestr+"_q")) 
    2325        Variable/G USANS_dQv = dQv 
    24         String/G root:Packages:NIST:USANS_basestr = basestr 
     26        String/G root:Packages:NIST:USANS_basestr = basestr             //this is the "current data" for slope and weights 
    2527 
    2628        Make/D/O/N=(USANS_N,USANS_N) $(basestr+"_res") 
     
    111113        Variable/G USANS_m = -4 
    112114        Variable/G USANS_slope_numpnts = 15 
     115        // must reset the global for baseStr to this set, otherwise it will look for the last set loaded 
     116        String/G root:Packages:NIST:USANS_basestr = basestr             //this is the "current data" for slope and weights 
     117 
    113118         
    114119        Print "---- Calculating Weighting Matrix for USANS Data ----" 
Note: See TracChangeset for help on using the changeset viewer.