Skip to content

Commit

Permalink
Fix bug in AutomaticQC/qcFilterPrep.m which prevented imosRateOfChang…
Browse files Browse the repository at this point in the history
…eQC test from being used twice in a row.
  • Loading branch information
ggalibert committed Jun 23, 2016
1 parent 1f2a892 commit a799eb8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions AutomaticQC/qcFilterPrep.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@
% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
% POSSIBILITY OF SUCH DAMAGE.
%
fun = str2func([filtername 'Prep']);
fun2 = functions(fun);
ok = size(fun2.file, 2) > 0;

if ok
fun = [filtername 'Prep'];
if exist(fun, 'file') % MATLAB function
fun = str2func(fun);
type{1} = 'dimensions';
type{2} = 'variables';
qcPrep=struct;
Expand All @@ -57,7 +56,10 @@
% check for previously computed stddev
if isfield(sam.meta, 'qcPrep')
if isfield(sam.meta.qcPrep, filtername)
continue;
if isfield(sam.meta.qcPrep.(filtername), type{m})
qcPrep.(type{m}){k} = sam.meta.qcPrep.(filtername).(type{m}){k};
continue;
end
end
end

Expand Down

0 comments on commit a799eb8

Please sign in to comment.