This is a static copy of a profile reportHome
deglitchWrapper (1 call, 7.848 sec)
Generated 05-Aug-2011 13:03:25 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/support/deglitchWrapper.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
reduceData | function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
44 | [d flag] = packd(d, flags, 'no... | 1 | 4.886 s | 62.3% |  |
36 | flags.new = deglitch(d, flagPa... | 1 | 2.634 s | 33.6% |  |
49 | d = updateFlags(d, 1); | 1 | 0.175 s | 2.2% |  |
48 | d = setNewFlag(d, flag.new.out... | 1 | 0.087 s | 1.1% |  |
40 | setPlotDisplay(plotparams.plot... | 1 | 0.044 s | 0.6% |  |
All other lines | | | 0.022 s | 0.3% |  |
Totals | | | 7.848 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
packd | function | 1 | 4.886 s | 62.3% |  |
deglitch | function | 1 | 2.634 s | 33.6% |  |
updateFlags | function | 1 | 0.175 s | 2.2% |  |
setNewFlag | function | 1 | 0.087 s | 1.1% |  |
setPlotDisplay | function | 1 | 0.044 s | 0.6% |  |
logcal | function | 2 | 0 s | 0% |  |
checkpar | function | 1 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.022 s | 0.3% |  |
Totals | | | 7.848 s | 100% | |
Code Analyzer results
Line number | Message |
1 | Extra semicolon is unnecessary. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 54 |
Non-code lines (comments, blank lines) | 31 |
Code lines (lines that can run) | 23 |
Code lines that did run | 14 |
Code lines that did not run | 9 |
Coverage (did run/can run) | 60.87 % |
Function listing
time calls line
1 function d = deglitchWrapper(d, plotparams, parm, field);
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % function d = deglitchWrapper(d, plotparams, parm, field);
6 %
7 % reduceData function that calls the deglitching algorithm with
8 % parameters parm.
9 %
10 % sjcm
11 %
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13
14 % check if we have the flagging parameters
0.01 1 15 parFlag = checkpar(parm, 'deglitch');
16
1 17 if(parFlag)
1 18 flagParams = [parm.deglitch.chan1 parm.deglitch.chan2];
19 else
20 display('Using Default deglitching parameters');
21 flagParams = [10 5];
22 end
23
1 24 [d,q] = logcal(d, 'deglitch');
1 25 if (q)
26 disp('Deglitching has already been applied')
27 disp(' ')
28 d=checkstatus(d);
29 return
30 end
31
32 % first we separate the old flags
1 33 flags.old.bit = d.flags.bit;
34
35 % if deglitching hasn't been done, do it.
2.63 1 36 flags.new = deglitch(d, flagParams);
37
1 38 display('Plotting data');
39
0.04 1 40 setPlotDisplay(plotparams.plot);
41
42 % d in packd should be unchanged.
43
4.89 1 44 [d flag] = packd(d, flags, 'none', 'deglitch', plotparams, 'Deglitching Plots', field);
45
46 % next we fix our flags -- all the ones in this stage, including
47 % interactive flagging, are in flag.new.out
0.09 1 48 d = setNewFlag(d, flag.new.out, 'deglitch');
0.17 1 49 d = updateFlags(d, 1);
50
51
1 52 d = logcal(d, 'deglitch');
53
1 54 return;
Other subfunctions in this file are not included in this listing.