Merge "Add count_slot_usage argument for sensitivity"
This commit is contained in:
commit
b900d0b355
@ -47,7 +47,7 @@ def main():
|
|||||||
|
|
||||||
print("Day\tUTC Hour")
|
print("Day\tUTC Hour")
|
||||||
available_slots = 2 * len(CHANNELS)
|
available_slots = 2 * len(CHANNELS)
|
||||||
full_time_slot = available_slots - 1
|
full_time_slot = available_slots - args.sensitivity
|
||||||
for day in WEEKDAYS:
|
for day in WEEKDAYS:
|
||||||
for hour in range(24):
|
for hour in range(24):
|
||||||
slot_usage = len(meeting_counts[hour][day])
|
slot_usage = len(meeting_counts[hour][day])
|
||||||
@ -162,6 +162,11 @@ def parse_args():
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--csv', metavar='FILE_NAME',
|
'--csv', metavar='FILE_NAME',
|
||||||
help='If specified, write counts to the specified CSV file')
|
help='If specified, write counts to the specified CSV file')
|
||||||
|
parser.add_argument(
|
||||||
|
'--sensitivity', type=int, default=1,
|
||||||
|
help='Sensitivity of reporting. '
|
||||||
|
'Defaults to 1, which means report if no weekly slot is '
|
||||||
|
'available at the time slots considered.')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
return args
|
return args
|
||||||
|
Loading…
x
Reference in New Issue
Block a user