def determine_if_segmentation_should_be_done(master_config):
    """ This function is in a trival state right now, but
    more complicated rulesets may be necessary in the furture
    to determine when segmentation should be run.
    This is being left so that anticipated future
    changes are easier to implement.

    :param master_config:
    :return:
    """
    do_BRAINSCut_Segmentation = False
    if master_config["workflow_phase"] == "atlas-based-reference":
        if "segmentation" in master_config["components"]:
            do_BRAINSCut_Segmentation = True
    elif master_config["workflow_phase"] == "subject-based-reference":
        if "segmentation" in master_config["components"]:
            do_BRAINSCut_Segmentation = True
    return do_BRAINSCut_Segmentation