From 88d99faf0c31f3b6a46cc688a4b94aeacfca89c3 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Thu, 14 Jan 2016 18:09:09 +0000 Subject: [PATCH] Changed roundvalue function to round_value. --- gprMax/utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gprMax/utilities.py b/gprMax/utilities.py index 81c885f5..976e5ab1 100644 --- a/gprMax/utilities.py +++ b/gprMax/utilities.py @@ -74,13 +74,13 @@ def update_progress(progress): # Modify this to change the length of the progress bar barLength = 50 - block = roundvalue(barLength * progress) + block = round_value(barLength * progress) text = '\r|{}| {:2.1f}%'.format( '#' * block + '-' * (barLength - block), progress * 100) sys.stdout.write(text) sys.stdout.flush() -def roundvalue(value, decimalplaces=0): +def round_value(value, decimalplaces=0): """Rounding function. Args: