def get_downstream_preprocessed_datasets()

in muss/resources/datasets.py [0:0]


def get_downstream_preprocessed_datasets(dataset):
    downstream_datasets = []
    for candidate_dataset in get_all_datasets():
        original_dataset = get_original_dataset(candidate_dataset)
        if original_dataset is not None and original_dataset == dataset:
            downstream_datasets.append(candidate_dataset)
    # Now search recursively
    for downstream_dataset in downstream_datasets.copy():
        downstream_datasets.extend(get_downstream_preprocessed_datasets(downstream_dataset))
    return downstream_datasets