"""Exact phase-average capture for a periodically repeated schedule, ideal fixed slots.""" import argparse import json def compare(period, shifts, width): if type(period) is not int or period<=0 or not shifts: raise ValueError("a positive integer period and a nonempty schedule are required") if not 0