def simulate_multirec_acquisition(client, is_private=False, name=None): schedule_entry = SINGLE_MULTI_RECORDING_ACQUISITION.copy() schedule_entry["is_private"] = is_private if name is not None: schedule_entry["name"] = name entry = post_schedule(client, schedule_entry) simulate_scheduler_run() return entry["name"]
def simulate_acquisitions(client, schedule_entry, n=1, name=None): assert 0 < n <= 10 if n > 1: schedule_entry["relative_stop"] = n if name is not None: schedule_entry["name"] = name entry = post_schedule(client, schedule_entry) simulate_scheduler_run(n) return entry["name"]
def simulate_acquisitions(client, n=1, is_private=False, name=None): assert 0 < n <= 10 if n == 1: schedule_entry = SINGLE_ACQUISITION.copy() else: schedule_entry = MULTIPLE_ACQUISITIONS.copy() schedule_entry['relative_stop'] = n + 1 schedule_entry['is_private'] = is_private if name is not None: schedule_entry['name'] = name entry = post_schedule(client, schedule_entry) simulate_scheduler_run(n) return entry['name']