def replicate_config(cfg, num_times=1):
    """Replicate a config dictionary some number of times
    
    Args:
        cfg (dict): Base config dictionary
        num_times (int): Number of repeats
    
    Returns:
        (list): List of duplicated config dictionaries, with an added 'replicate' field.
    """
    # Repeat configuration settings across replicates
    configs = []
    for replicate in range(num_times):
        _config = cfg.copy()
        _config.update({"replicate": replicate})
        configs.append(_config)
    return configs