aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortassaron2022-04-30 22:07:06 -0400
committertassaron2022-04-30 22:07:06 -0400
commita0d8e7bc0543aa9eb82d6d378ce6a8f5d0f85c11 (patch)
treeb97b185bac93dd81dcfef190a9cc6bf6833bb7d3
parente79d9db9f16b325d7433fc19dc8ea24dfc8a132c (diff)
fix progress bar percentage not increasing
numpy.floor now returns a float if given a float
-rw-r--r--src/video_thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_thread.py b/src/video_thread.py
index 4a28261..5a28beb 100644
--- a/src/video_thread.py
+++ b/src/video_thread.py
@@ -340,7 +340,7 @@ class Worker(QtCore.QObject):
# increase progress bar value
completion = (audioI / self.audioArrayLen) * 100
if progressBarValue + 1 <= completion:
- progressBarValue = numpy.floor(completion)
+ progressBarValue = numpy.floor(completion).astype(int)
self.progressBarUpdate.emit(progressBarValue)
self.progressBarSetText.emit(
"Exporting video: %s%%" % str(int(progressBarValue))