def setup_sim(sim):
    """
    Convenience function for setting up a simulation for execution. Just calls
    a bunch of methods of the Simulator object
    """

    sim.evaluate_config()
    sim.update_id()
    sim.make_logger()
    sim.make_coord_arrays()
    sim.configure()
    sim.build_device()
    sim.set_excitation()
    return sim