def iterate_over_samples(sim_handler, sim_times):
    """
    Iterate over the different sim times and simulate network
    """
    errors = []
    for sim_time in sim_times:
        # Update handler configuration
        sim_handler.config["snn_config"]["sim_time"] = sim_time
        sim_handler.run()
        errors.append(sim_handler.metrics["rmse"])
    return errors