Browse Source

Merge "Add count_slot_usage argument for sensitivity"

changes/12/629612/1
Zuul 5 months ago
parent
commit
b900d0b355
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      tools/count_slot_usage.py

+ 6
- 1
tools/count_slot_usage.py View File

@@ -47,7 +47,7 @@ def main():
47 47
 
48 48
     print("Day\tUTC Hour")
49 49
     available_slots = 2 * len(CHANNELS)
50
-    full_time_slot = available_slots - 1
50
+    full_time_slot = available_slots - args.sensitivity
51 51
     for day in WEEKDAYS:
52 52
         for hour in range(24):
53 53
             slot_usage = len(meeting_counts[hour][day])
@@ -162,6 +162,11 @@ def parse_args():
162 162
     parser.add_argument(
163 163
         '--csv', metavar='FILE_NAME',
164 164
         help='If specified, write counts to the specified CSV file')
165
+    parser.add_argument(
166
+        '--sensitivity', type=int, default=1,
167
+        help='Sensitivity of reporting. '
168
+             'Defaults to 1, which means report if no weekly slot is '
169
+             'available at the time slots considered.')
165 170
 
166 171
     args = parser.parse_args()
167 172
     return args

Loading…
Cancel
Save