forked from makeasnek/FindTheMag2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutility.py
More file actions
22 lines (22 loc) · 788 Bytes
/
Copy pathutility.py
File metadata and controls
22 lines (22 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Used for debugging purposes
import main
def generate_stats():
answer=input('Enter BOINC data dir')
combined_stats = main.config_files_to_stats(answer)
example_ratios = {
'WORLDCOMMUNITYGRID.ORG': .01,
'SECH.ME/BOINC/AMICABLE': .99,
'ESCATTER11.FULLERTON.EDU/NFS': .0,
}
approved_projects = list(example_ratios.keys())
result=main.add_mag_to_combined_stats(combined_stats, example_ratios, approved_projects, preferred_projects=[])
print('Answer is {}'.format(result))
if __name__=='__main__':
answer=''
while True:
print('1. Generate stats')
answer=input('Enter the option you would like to choose, or Q for quit')
if answer=='1':
generate_stats()
if answer=='Q':
quit()