Ignore:
Timestamp:
Jun 24, 2013 4:29:54 PM (9 years ago)
Author:
srkline
Message:

Changes to panels so that they fit on a low-resolution laptop screen (Nx768).

  • Auto Fit
  • Event Mode
  • All polarization panels

In addition, Functionality was added to the event mode processing to (better) handle large files. Files can be split and either added as slices (if oscillatory) or decimated (if stream). The "tweaking" of the data stream is also a little bit more automated now, using some intelligent locating of the time steps and an overlay of the derivative.

Corrected a few bugs in file handling on the polarization panels in cases where the user canceled out of a file dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Analysis/Alpha/Auto_Fit.ipf

    r912 r915  
    316316Window AutoFitPanel() 
    317317        PauseUpdate; Silent 1           // building window... 
    318         NewPanel /W=(685,44,1001,740) /K=1 
     318        NewPanel /W=(434,44,1063,422) /K=1 
    319319        DoWindow/C AutoFitPanel 
    320320        SetDrawLayer UserBack 
    321 //      DrawText 11,418,"Point Range" 
    322 //      DrawText 5,167,"Suffix" 
    323         DrawLine 8,362,287,362 
    324         PopupMenu popup0,pos={2,2},size={175,20},title="pick a function" 
     321///     DrawText 11,418,"Point Range" 
     322///     DrawText 5,167,"Suffix" 
     323//      DrawLine 8,362,287,362 
     324        PopupMenu popup0,pos={13,6},size={175,20},title="Pick a Function" 
    325325        PopupMenu popup0,mode=1,value= #"User_FunctionPopupList()",proc=AF_FuncPopupProc 
    326326                 
     
    330330        ListBox lb userColumnResize=1,widths={200,80} 
    331331         
    332 //      Button DelButton,pos={245,61},size={40,20},proc=DelButtonProc,title="Del",disable=2 
    333         Button PathButton,pos={6,61},size={50,20},proc=PDPButton,title="Path..." 
     332///     Button DelButton,pos={245,61},size={40,20},proc=DelButtonProc,title="Del",disable=2 
     333        Button PathButton,pos={13,61},size={50,20},proc=PDPButton,title="Path..." 
    334334        Button FileListButton,pos={82,61},size={50,20},proc=FileListButtonProc,title="List" 
    335         CheckBox AllFilesCheck,pos={182,64},size={32,14},proc=CheckAllFiles,title="Select All Files" 
     335        CheckBox AllFilesCheck,pos={196,64},size={32,14},proc=CheckAllFiles,title="Select All Files" 
    336336        CheckBox AllFilesCheck,value= 0 
    337         ListBox guessBox,pos={24,398},size={145,208},disable=1,proc=UpdateGuessMatrixProc 
     337        ListBox guessBox,pos={345,102},size={145,208},disable=1,proc=UpdateGuessMatrixProc 
    338338        ListBox guessBox,frame=2,listWave=root:AutoFit:guessList 
    339339        ListBox guessBox,selWave=root:AutoFit:guessSel,mode= 2,selRow= 0 
    340         Button FillAllGuessButton,pos={196,406},size={50,20},disable=1,proc=FillAllGuessButtonProc,title="Fill All" 
    341         Button FillAllHoldButton,pos={196,406},size={50,20},disable=1,proc=FillAllHoldButtonProc,title="Fill All" 
    342         Button FillAllConstrButton,pos={196,406},size={50,20},proc=FillAllConstrButtonProc,title="Fill All" 
    343         Button FillAllRangeB,pos={196,406},size={50,20},disable=1,proc=FillAllRangeButtonProc,title="Fill All" 
    344         SetVariable NumParams,pos={7,34},size={150,15},proc=SetNumParamProc,title="Number of Parameters" 
     340        Button FillAllGuessButton,pos={517,110},size={50,20},disable=1,proc=FillAllGuessButtonProc,title="Fill All" 
     341        Button FillAllHoldButton,pos={517,110},size={50,20},disable=1,proc=FillAllHoldButtonProc,title="Fill All" 
     342        Button FillAllConstrButton,pos={517,110},size={50,20},proc=FillAllConstrButtonProc,title="Fill All" 
     343        Button FillAllRangeB,pos={517,110},size={50,20},disable=1,proc=FillAllRangeButtonProc,title="Fill All" 
     344        SetVariable NumParams,pos={13,35},size={150,15},proc=SetNumParamProc,title="Number of Parameters" 
    345345        SetVariable NumParams,limits={2,Inf,0},value= root:AutoFit:numPar 
    346 //      CheckBox typeCheck,pos={207,31},size={32,14},title="NSE Data?",value=0 
    347 //      SetVariable fitTol,pos={80,208},size={80,15},title="Fit Tol" 
    348 //      SetVariable fitTol,limits={0.0001,0.1,0},value= root:AutoFit:fitTol 
    349         CheckBox epsilonCheck,pos={156,335},size={32,14},value=0,title="Use Epsilon Wave?" 
    350  
    351         TabControl tabC,pos={13,371},size={273,244},proc=tabProc,tabLabel(0)="Guess" 
     346///     CheckBox typeCheck,pos={207,31},size={32,14},title="NSE Data?",value=0 
     347///     SetVariable fitTol,pos={80,208},size={80,15},title="Fit Tol" 
     348///     SetVariable fitTol,limits={0.0001,0.1,0},value= root:AutoFit:fitTol 
     349        CheckBox epsilonCheck,pos={156,340},size={32,14},value=0,title="Use Epsilon Wave?" 
     350 
     351        TabControl tabC,pos={334,75},size={273,244},proc=tabProc,tabLabel(0)="Guess" 
    352352        TabControl tabC,tabLabel(1)="Hold",tabLabel(2)="Constraint",tabLabel(3)="Range",value= 0 
    353 //      CheckBox rangeCheck,pos={92,404},size={32,14},proc=RangeCheckProc,title="All" 
    354 //      CheckBox rangeCheck,value= 1,disable=2 
    355  
    356         SetVariable lowPt,pos={136,404},size={60,15},title="low" 
    357         SetVariable lowPt,limits={0,Inf,0},value= root:AutoFit:ptLow,noedit=1,disable=1 
    358         SetVariable highPt,pos={201,404},size={60,15},title=" to " 
    359         SetVariable highPt,limits={0,Inf,0},value= root:AutoFit:ptHigh,noedit=1,disable=1 
    360         ListBox holdBox,pos={24,398},size={145,208},disable=1,proc=UpdateHoldMatrixProc 
     353///     CheckBox rangeCheck,pos={92,404},size={32,14},proc=RangeCheckProc,title="All" 
     354///     CheckBox rangeCheck,value= 1,disable=2 
     355 
     356////    SetVariable lowPt,pos={136,404},size={60,15},title="low" 
     357////    SetVariable lowPt,limits={0,Inf,0},value= root:AutoFit:ptLow,noedit=1,disable=1 
     358////    SetVariable highPt,pos={201,404},size={60,15},title=" to " 
     359////    SetVariable highPt,limits={0,Inf,0},value= root:AutoFit:ptHigh,noedit=1,disable=1 
     360        ListBox holdBox,pos={345,102},size={145,208},disable=1,proc=UpdateHoldMatrixProc 
    361361        ListBox holdBox,frame=2,listWave=root:AutoFit:holdList 
    362362        ListBox holdBox,selWave=root:AutoFit:holdSel,mode= 2,selRow= 2 
    363         ListBox ConstrBox,pos={24,398},size={145,208},proc=UpdateConstrMatrixProc 
     363        ListBox ConstrBox,pos={345,102},size={145,208},proc=UpdateConstrMatrixProc 
    364364        ListBox ConstrBox,frame=2,listWave=root:AutoFit:ConstrList 
    365365        ListBox ConstrBox,selWave=root:AutoFit:ConstrSel,mode= 2,selRow= 2 
    366         ListBox RangeBox,pos={24,398},size={145,208},proc=UpdateRangeMatrixProc 
     366        ListBox RangeBox,pos={345,102},size={145,208},proc=UpdateRangeMatrixProc 
    367367        ListBox RangeBox,frame=2,listWave=root:AutoFit:rangeList 
    368368        ListBox RangeBox,selWave=root:AutoFit:RangeSel,mode= 2,selRow= 2 
    369 //      Button MatrixButton,pos={12,205},size={60,20},proc=ToMatrixButtonProc,title="Matrix",disable=2 
    370         Button DoItButton,pos={21,632},size={80,20},proc=DoTheFitsButtonProc,title="Do the fits" 
    371 //      Button savePathButton,pos={82,61},size={80,20},proc=SavePathButtonProc,title="Save Path..." 
    372         TitleBox tb1,pos={139,634},size={128,12},anchor=MC,variable=root:AutoFit:gStatus,frame=0 
    373         Button button0,pos={14,331},size={40,20},title="Plot",proc=LoadForGuessProc 
    374 //      SetVariable extStr,pos={4,170},size={40,15},title=" ",value= root:AutoFit:gExt 
    375          
    376         Button GuessCoefB,pos={198,440},size={50,20},title="Guess",proc=UseCoefAsGuess 
    377         Button GuessHoldB,pos={198,440},size={50,20},title="Guess",disable=1,proc=UseHoldAsGuess 
    378 //      Button GuessConstrB,pos={198,440},size={50,20},title="Guess",disable=1,proc=UseConstraintsAsGuess 
    379          
    380         TitleBox infoTitleBox pos={180,470},fixedSize=1,size={96,130},variable=root:AutoFit:guessStr 
    381          
    382         ValDisplay progressValdisp,pos={113,663},size={161,7},title="00:00" 
     369///     Button MatrixButton,pos={12,205},size={60,20},proc=ToMatrixButtonProc,title="Matrix",disable=2 
     370        Button DoItButton,pos={339,336},size={80,20},proc=DoTheFitsButtonProc,title="Do the fits" 
     371///     Button savePathButton,pos={82,61},size={80,20},proc=SavePathButtonProc,title="Save Path..." 
     372        TitleBox tb1,pos={479,330},size={128,12},anchor=MC,variable=root:AutoFit:gStatus,frame=0 
     373        Button button0,pos={14,336},size={60,20},title="Plot",proc=LoadForGuessProc 
     374///     SetVariable extStr,pos={4,170},size={40,15},title=" ",value= root:AutoFit:gExt 
     375         
     376        Button GuessCoefB,pos={519,144},size={50,20},title="Guess",proc=UseCoefAsGuess 
     377        Button GuessHoldB,pos={519,144},size={50,20},title="Guess",disable=1,proc=UseHoldAsGuess 
     378///     Button GuessConstrB,pos={198,440},size={50,20},title="Guess",disable=1,proc=UseConstraintsAsGuess 
     379         
     380        TitleBox infoTitleBox pos={501,174},fixedSize=1,size={96,130},variable=root:AutoFit:guessStr 
     381         
     382        ValDisplay progressValdisp,pos={446,349},size={161,7},title="00:00" 
    383383        ValDisplay progressValdisp,limits={0,root:AutoFit:endProgress,0},barmisc={0,0},value= root:AutoFit:curProgress 
    384384         
    385         Button AF_DoneButton,pos={174,30},size={70,20},proc=AF_DoneButtonProc,title="Done" 
    386         Button AF_HelpButton,pos={260,30},size={30,20},proc=AF_HelpButtonProc,title="?" 
     385        Button AF_DoneButton,pos={541,8},size={70,20},proc=AF_DoneButtonProc,title="Done" 
     386        Button AF_HelpButton,pos={496,8},size={30,20},proc=AF_HelpButtonProc,title="?" 
    387387 
    388388EndMacro 
Note: See TracChangeset for help on using the changeset viewer.