Skip to content

Commit e62c811

Browse files
committed
fixing averaging calculation
1 parent e0c3866 commit e62c811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/+edu/+stanford/+covert/+cell/+sim/+util/HighthroughputExperimentsLogger.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426

427427
%% average over time
428428
%calculate means and variances
429-
nTime = numel(this.time);
429+
nTime = find(this.time, 1, 'last');
430430

431431
this.metConcs.mean = 1 / nTime * this.metConcs.sum;
432432
this.dnaSeq.mean = 1 / nTime * this.dnaSeq.sum;

0 commit comments

Comments
 (0)