From 78578186e662347504ac50e8fa136fe3e7c0310e Mon Sep 17 00:00:00 2001 From: David Date: Mon, 6 Feb 2017 14:44:32 -0600 Subject: [PATCH] fixed a bug in the progress calculation of BSQ sifting --- stim/envi/bsq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stim/envi/bsq.h b/stim/envi/bsq.h index 8297e30..387838d 100644 --- a/stim/envi/bsq.h +++ b/stim/envi/bsq.h @@ -996,7 +996,7 @@ public: matrix[i*Z() + b] = band_image[xy]; //copy it to the appropriate point in the values[] array i++; } - if(PROGRESS) progress = (double)(xy+1) / (double)XY * 100; + if(PROGRESS) progress = (double)(b * XY + xy+1) / (double)(XY * Z()) * 100; } } -- libgit2 0.21.4