Sim Runner

rubin_scheduler.scheduler.sim_runner.sim_runner(observatory, scheduler, filter_scheduler=None, sim_start_mjd=None, sim_duration=3.0, filename=None, delete_past=True, n_visit_limit=None, step_none=15.0, verbose=True, extra_info=None, event_table=None, record_rewards=False, start_result_size=200000, append_result_size=2500000, anomalous_overhead_func=None, telescope='rubin')[source]

run a simulation

Parameters:
  • survey_length (float (3.)) – The length of the survey ot run (days)

  • step_none (float (15)) – The amount of time to advance if the scheduler fails to return a target (minutes).

  • extra_info (dict (None)) – If present, dict gets added onto the information from the observatory model.

  • event_table (np.array (None)) – Any ToO events that were included in the simulation

  • record_rewards (bool (False)) – Save computed rewards

  • start_result_size (int) – Size of observations array to pre-allocate at the start of the run. Default 2e5.

  • append_result_size (int) – Size of observations array to append if start_result_size is too small. Default 2.5e6.

  • anomalous_overhead_func (Callable or None) – A function or callable object that takes the visit time and slew time (in seconds) as argument, and returns and additional offset (also in seconds) to be applied as addinional overhead between exposures. Defaults to None.

  • telescope (str) – Name of telecope for camera rotation. Default “rubin”.