import csv
import ast


def get_experiment_plan(filepath):
    """
    Parse a .csv file to create a dictionary of instructions.
    """

    with open(filepath, newline='') as csvfile:
        reader = csv.reader(csvfile)
        plan_dict = {}
        for i, row in enumerate(reader):
            assert len(row) == 2
            plan_dict[row[0]] = ast.literal_eval(row[1])

    return plan_dict