Added comments for the arguments for the solver script. #531

This commit is contained in:
Korina Cordero 2021-01-25 02:29:09 +00:00
parent 44afc498c1
commit cdcdbe72b2

View file

@ -38,13 +38,16 @@ def main():
req_hours = [[0 for x in range(len(hours))] for y in range(len(days))]
# get arguments
# there will be 7 arguments, monday to sunday schedule
# there will be 8 arguments, monday to sunday schedule and the shift selected
# sample argument:
# 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 24_7
for day_index in range(0, len(days)):
hours_string = sys.argv[day_index + 1]
hours_data = hours_string.split('-')
for hour_index in range(0, len(hours)):
req_hours[day_index][hour_index] = int(hours_data[hour_index])
# index of shift selected is 8
shift = sys.argv[8]
hour_shifts = []
if shift == "24_7":