Changeset 291


Ignore:
Timestamp:
Feb 21, 2008 5:15:15 PM (15 years ago)
Author:
srkline
Message:

Major changes to the SANS_Analysis Help file

Bug fixes in Global fit, the wrapper and the plot manager (help buttons)

updated snapshots of the sample 2d data and proper parameters

Location:
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/Packages/GlobalFit/GlobalFit2_NCNR_v40.ipf

    r273 r291  
    210210                ControlInfo/W=NewGlobalFitPanel#NewGF_GlobalControlArea NewGF_MaskingCheckBox 
    211211                Variable useCursors = V_Value 
    212                 if(useCursors) 
     212                if(useCursors && waveexists(mw)) 
    213213                        //find the first 1,  then find the zero 
    214214                        pt1 = 0 
     
    12751275                if (doMasking) 
    12761276                        Wave/Z mw = $(DataSets[i][MaskCol]) 
    1277                         if (!WaveExists(mw)) 
     1277//                      if (!WaveExists(mw)) 
     1278                        if (!WaveExists(mw) && cmpstr(DataSets[i][MaskCol],"No Mask") != 0)     // SRK - allow for no mask 
    12781279                                errorWaveRow = i 
    12791280                                errorWaveColumn = MaskCol 
    12801281                                return NewGlobalFitNOMSKWAVE 
    12811282                        endif 
    1282                         if (wavePoints != numpnts(mw)) 
     1283//                      if (wavePoints != numpnts(mw)) 
     1284                        if ( (wavePoints != numpnts(mw)) && (cmpstr(DataSets[i][MaskCol],"No Mask") != 0) )     // SRK - allow for no mask 
    12831285                                errorWaveRow = i 
    12841286                                errorWaveColumn = MaskCol 
     
    13401342                         
    13411343                        if (doMasking) 
    1342                                 if ( (numtype(mw[j]) != 0) || (mw[j] == 0) ) 
     1344                                // SRK keep points in data that has no Mask wave specified 
     1345                                if(cmpstr(DataSets[i][MaskCol],"No Mask") == 0) // SRK - allow for no mask 
     1346                                        //do nothing, keep the point 
     1347                                elseif ( (numtype(mw[j]) != 0) || (mw[j] == 0) ) 
    13431348                                        continue 
    13441349                                endif 
     
    40104015                        DataSets[i][startingNCols] = MaskingListWave[i][1] 
    40114016                else 
    4012                         Redimension/N=(-1,startingNCols) DataSets 
    4013                         DoAlert 0,"The mask wave \""+MaskingListWave[i][1]+"\" for Y wave \""+(DataSets[i][0])+"\" does not exist." 
    4014                         return -1 
     4017                        //SRK !!!! CHANGING THE BEHAVIOR !!!! 
     4018                        // if no masking wave was specified, use the entire set (==1) 
     4019//                      Redimension/N=(-1,startingNCols) DataSets 
     4020//                      DoAlert 0,"The mask wave \""+MaskingListWave[i][1]+"\" for Y wave \""+(DataSets[i][0])+"\" does not exist." 
     4021//                      return -1 
     4022 
     4023                        DataSets[i][startingNCols] = "No Mask" 
     4024                        //eSRK 
    40154025                endif 
    40164026        endfor 
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/Packages/Wrapper_v40.ipf

    r285 r291  
    1919 
    2020        //Create useful globals 
    21         Variable/G root:Packages:NIST:SANS_ANA_VERSION=4.00 
     21        Variable/G root:Packages:NIST:SANS_ANA_VERSION=4.00 
    2222        String/G root:Packages:NIST:SANS_ANA_EXTENSION="_v40" 
    2323         
     
    7272        //change draw order to put button over text of checkbox 
    7373        Button button_0,pos={520,93},size={100,20},proc=DoTheFitButton,title="Do 1D Fit" 
    74         Button button_4,pos={520,130},size={100,20},proc=FeedbackButtonButtonProc,title="Feedback" 
     74        Button button_4,pos={520,126},size={100,20},proc=FeedbackButtonProc,title="Feedback" 
     75        Button button_5,pos={520,150},size={100,20},proc=FitHelpButtonProc,title="Help" 
    7576 
    7677        Edit/W=(20,174,634,435)/HOST=#   
     
    8081EndMacro 
    8182 
     83//open the Help file for the Fit Manager 
     84Function FitHelpButtonProc(ba) : ButtonControl 
     85        STRUCT WMButtonAction &ba 
     86 
     87        switch( ba.eventCode ) 
     88                case 2: // mouse up 
     89                        // click code here 
     90                        DisplayHelpTopic "Fit Manager" 
     91                        break 
     92        endswitch 
     93 
     94        return 0 
     95End 
     96 
     97 
    8298//open the trac page for feedback 
    83 Function FeedbackButtonButtonProc(ba) : ButtonControl 
     99Function FeedbackButtonProc(ba) : ButtonControl 
    84100        STRUCT WMButtonAction &ba 
    85101 
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/PlotManager_v40.ipf

    r257 r291  
    4747        GroupBox group0_1,pos={222,123},size={50,4},title="multiple files" 
    4848        GroupBox group1,pos={7,207},size={350,4} 
     49        Button button8,pos={238,50},size={100,20},proc=A_OneDLoader_HelpButton,title="Help" 
    4950EndMacro 
     51 
     52//open the Help file for the Fit Manager 
     53Function A_OneDLoader_HelpButton(ba) : ButtonControl 
     54        STRUCT WMButtonAction &ba 
     55 
     56        switch( ba.eventCode ) 
     57                case 2: // mouse up 
     58                        // click code here 
     59                        DisplayHelpTopic "Plot Manager" 
     60                        break 
     61        endswitch 
     62 
     63        return 0 
     64End 
    5065 
    5166//uses the same data folder listing as the wrapper 
     
    142157        ModifyGraph grid=1,mirror=2,standoff=0 
    143158        ErrorBars $iStr Y,wave=($eStr,$eStr) 
    144         ModifyGraph tickUnit(left)=1 
     159        ModifyGraph tickUnit=1 
    145160                                 
    146161        Label left "I(q)" 
Note: See TracChangeset for help on using the changeset viewer.