python cleaning
This commit is contained in:
parent
02ab55d4b3
commit
45d11f81b0
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: UTF-8 no BOM -*-
|
# -*- coding: UTF-8 no BOM -*-
|
||||||
import sys,time,random,threading,os,subprocess,shlex,time
|
import sys,time,random,threading,os,subprocess,shlex
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from optparse import Option
|
from optparse import Option
|
||||||
|
|
||||||
|
@ -144,7 +144,6 @@ def progressBar(iteration, total, prefix='', bar_length=50):
|
||||||
prefix - Optional : prefix string (Str)
|
prefix - Optional : prefix string (Str)
|
||||||
bar_length - Optional : character length of bar (Int)
|
bar_length - Optional : character length of bar (Int)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
fraction = iteration / float(total)
|
fraction = iteration / float(total)
|
||||||
if not hasattr(progressBar, "last_fraction"): # first call to function
|
if not hasattr(progressBar, "last_fraction"): # first call to function
|
||||||
progressBar.start_time = time.time()
|
progressBar.start_time = time.time()
|
||||||
|
|
Loading…
Reference in New Issue