-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewReconstructions.py
39 lines (30 loc) · 1.24 KB
/
viewReconstructions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import pandas as pd
def viewFinalReconstructedProject(reconstructedFiles):
'''
View the final file states that get reconstructed
reconstructedFiles : A dictionary containing filenames as keys and a list
of said file at various states
Returns nothing, prints to the console
'''
for fileName in sorted(reconstructedFiles.keys()):
print(40*"=")
print(f"file = {fileName}")
print(40*"=")
print(reconstructedFiles[fileName][-1])
def viewReconstructedProjectStates(reconstructedFiles):
'''
View the project at all the different run states that get reconstructed
reconstructedFiles : A dictionary containing filenames as keys and a list
of said file at various states
Returns nothing, prints to the console
'''
numberOfStates = len(reconstructedFiles[reconstructedFiles.keys()[0]])
for stateNo in range(numberOfStates):
print("v" * 40)
print(f"Project State : {stateNo if stateNo != numberOfStates - 1 else 'FINAL'}")
print("^" * 40)
for fileName in sorted(reconstructedFiles.keys()):
print(40*"=")
print(f"file = {fileName}")
print(40*"=")
print(reconstructedFiles[fileName][stateNo])