Ejemplo n.º 1
0
    input_file_1 = input()
    print("max 1: ", end="")
    max_1 = int( input() )
    print("threshold 2: ", end="")
    threshold_2 = int( input() )
    print("input data 2: ", end="")
    input_file_2 = input()
    print("max 2: ", end="")
    max_2 = int( input() )

    input_text = ""
    input_path = "json/" + input_file_1 + ".json"

    file_size = os.path.getsize(input_path)
    progress = Progress(file_size)
    progress.progressBar("File1 Loading")
    with open(input_path, 'r') as f:
        line = f.readline()
        while line:
            progress.tick( len(line) )
            input_text += line
            line = f.readline()

    dataset_1 = json.loads(input_text)

    input_text = ""
    input_path = "json/" + input_file_2 + ".json"
    file_size = os.path.getsize(input_path)
    progress = Progress(file_size)
    progress.progressBar("File2 Loading")
    with open(input_path, 'r') as f:
Ejemplo n.º 2
0
from progress import Progress

if __name__ == "__main__":
    loop = 1000000
    counter = 0

    print(loop)
    progress = Progress(loop)
    progress.progressBar("Calculation")
    for i in range(loop):
        counter += i
        progress.tick(1)

    input()