def get_args(): parser = argparse.ArgumentParser( description="Setup and run simulation", ) parser.add_argument( '--steps', default='all', help='comma separated options to select what to run. s: setup, r: run', ) add_shared_args(parser) add_brownian_args(parser) add_run_args(parser) return parser.parse_args()
def get_args(): parser = argparse.ArgumentParser( description="Simulate users uploading locations", ) parser.add_argument( '--input_file', default=None, help="file storing user locations, in delimited format", ) parser.add_argument( '--delim', default='\t', help="delimiter between fields", ) add_shared_args(parser) return parser.parse_args()
def get_args(): parser = argparse.ArgumentParser( description="Simulate location authorities processing location log", ) parser.add_argument( '--start_days_before', default=100, type=int, help="number of days before now to process locations", ) parser.add_argument( '--end_days_from_start', default=1, type=int, help="number of days after start day to process locations", ) add_shared_args(parser) return parser.parse_args()
def get_args(): parser = argparse.ArgumentParser( description="Simulate users fetching notification", ) parser.add_argument( '--start_days_before', default=100, type=int, help="anchor for days before now to fetch used encrypted otps", ) parser.add_argument( '--days_from_start', default=28, type=int, help="number of days after anchor to actually start", ) add_shared_args(parser) add_run_args(parser) return parser.parse_args()
def get_args(): parser = argparse.ArgumentParser( description="Simulate medical authority confirming a new patient ", ) parser.add_argument( '--patient_user_id', type=int, help="user ID ", ) parser.add_argument( '--start_days_before', default=100, type=int, help="anchor for days before now to fetch used encrypted otps", ) parser.add_argument( '--days_from_start', default=28, type=int, help="number of days after anchor to actually start", ) add_shared_args(parser) add_run_args(parser) return parser.parse_args()
def get_args(): parser = argparse.ArgumentParser( description="Make user locations", ) parser.add_argument( '--output_file', default='/tmp/user_locations.txt', help="file for storing user locations, in delimited format", ) parser.add_argument( '--delim', default='\t', help="delimiter between fields", ) parser.add_argument( '--start_days_before', default=100, type=int, help="number of days before now to simulate locations", ) add_shared_args(parser) add_brownian_args(parser) add_run_args(parser) return parser.parse_args()
def get_args(): parser = argparse.ArgumentParser( description="Set up config and key files", ) add_shared_args(parser) return parser.parse_args()
def get_args(): parser = argparse.ArgumentParser(description="Run simulation", ) add_shared_args(parser) add_brownian_args(parser) add_run_args(parser) return parser.parse_args()