def make_filename(params, run):
    """Generate a filename based on params and run.
    params: (net, seed, freq, weight)"""
    nets = ['net_tunedrev',
            'net_nofeedbackrev',
            'net_disinhibitedrev']

    return (f"population_vectors_{nets[int(params[0])]}"
            f".TunedNetwork_{params[1]}_{str(run).zfill(3)}"
            f"_{params[2]}_{params[3]}.npz")