from datetime import datetime


def make_sim_exp_name(config):
    """Helper to create a simulator directory name using datetime and config"""
    time = datetime.now().strftime('%Y%m%d_%H%M%S')

    n_nonmot = config['exp_params']['n_non_motile']
    n_mot = config['exp_params']['n_motile']

    return f'{time}_sim_max{n_mot}_motile_max{n_nonmot}_nonmotile'