Ignore:
Timestamp:
Mar 6, 2009 5:11:44 PM (14 years ago)
Author:
srkline
Message:

minor bug fixes:
Schematic.ipf: fixed duplicate error, was incorrect folder path
Invariant.ipf: "Can't find dQv" error, now looks in proper data folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/Invariant/Invariant_v40.ipf

    r477 r480  
    277277        PopupMenu ywave,pos={10,60},size={231,20},proc=Inv_FilePopMenuProc,title="Data File" 
    278278        PopupMenu ywave,help={"Select the experimental intensity values"} 
    279         PopupMenu ywave,mode=1,popvalue="DDAB_EMATF_1p_25C.absb",value= #"root:Packages:NIST:invariant:gDataPopList" 
     279        PopupMenu ywave,mode=1,value= #"root:Packages:NIST:invariant:gDataPopList" 
    280280        Button loadButton,pos={10,90},size={130,20},proc=Inv_Load_Proc,title="Load and Plot File" 
    281281        Button loadButton,help={"After choosing a file, load it into memory and plot it with this button."} 
     
    653653 
    654654        NVAR isSlitSmeared=root:Packages:NIST:invariant:gIsSlitSmeared 
    655         SVAR fileStr=root:Packages:NIST:gLastFileName 
     655//      SVAR fileStr=root:Packages:NIST:gLastFileName 
    656656         
    657657        //reset the global to the checkbox state 
     
    659659         
    660660        if(checked)             //get the smearing info 
    661                 String cleanLastFileName = "root:"+CleanupName(fileStr,0) 
     661                ControlInfo/W=Invariant_Panel ywave 
     662                String folderStr=CleanupName(S_value,0) 
    662663                NVAR dQv=root:Packages:NIST:invariant:gDqv 
    663                 String tempName = cleanLastFileName+"sq" 
    664                 Wave/Z w=$tempName 
    665                 if(WaveExists(w) && w[0] < 0) 
    666                         dQv = - w[0] 
    667                         Print "Data is slit-smeared, dqv = ",w[0] 
     664                NVAR/Z loaded_dQv = $("root:"+folderStr+":USANS_dQv") 
     665                if(NVAR_Exists(loaded_dQv)) 
     666                        dQv = loaded_dQv 
     667                        Print "Data is slit-smeared, dqv = ",dQv 
    668668                else 
    669669                        DoAlert 0,"Can't find the slit height from the data. Enter the value manually if the data is truly slit-smeared, or uncheck the box." 
Note: See TracChangeset for help on using the changeset viewer.