Added comments for the arguments for the solver script. #531
This commit is contained in:
parent
44afc498c1
commit
cdcdbe72b2
1 changed files with 4 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue