예제 #1
0
def test_check_est_path_existence():
    """
    Test check_est_path_existence functionality
    """
    base_dir = str(Path(__file__).parent / "examples")
    est_path_iterlist = [
        f"{base_dir}/miscellaneous/sub-0021001_modality-dwi"
        f"_rsn-Default_model-csd_nodetype-parc_samples-"
        f"100000streams_tt-particle_dg-prob_ml-10_template-"
        f"MNI152_T1_thrtype-DENS_thr-0.09.npy",
        f"{base_dir}/miscellaneous/sub-0021001_modality-dwi_"
        f"rsn-Default_model-csd_nodetype-parc_samples-"
        f"100000streams_tt-particle_dg-prob_ml-10_template-"
        f"MNI152_T1_thrtype-DENS_thr-0.08.npy",
        f"{base_dir}/miscellaneous/sub-0021001_modality-dwi_"
        f"rsn-Default_model-csd_nodetype-parc_samples-"
        f"100000streams_tt-particle_dg-prob_ml-10_template-"
        f"MNI152_T1_thrtype-DENS_thr-0.07.npy",
        f"{base_dir}/miscellaneous/sub-0021001_modality-dwi_"
        f"rsn-Default_model-csd_nodetype-parc_samples-"
        f"100000streams_tt-particle_dg-prob_ml-10_template-"
        f"MNI152_T1_thrtype-DENS_thr-0.06.npy",
        f"{base_dir}/miscellaneous/sub-0021001_modality-dwi_"
        f"rsn-Default_model-csd_nodetype-parc_samples-"
        f"100000streams_tt-particle_dg-prob_ml-10_template-"
        f"MNI152_T1_thrtype-DENS_thr-0.1.npy",
        f"{base_dir}/miscellaneous/bad_path.npy"
    ]
    [est_path_list_ex, _] = utils.check_est_path_existence(est_path_iterlist)
    assert est_path_list_ex is not None
예제 #2
0
def test_check_est_path_existence(gen_mat_data):
    """
    Test check_est_path_existence functionality
    """

    est_path_iterlist = gen_mat_data(n_graphs=10)['mat_file_list']
    [est_path_list_ex, _] = utils.check_est_path_existence(est_path_iterlist)
    assert est_path_list_ex is not None
예제 #3
0
def test_check_est_path_existence():
    """
    Test check_est_path_existence functionality
    """
    base_dir = str(Path(__file__).parent/"examples")
    dir_path = base_dir + '/002/dmri'
    est_path_list = [dir_path + '/DesikanKlein2012/0021001_Default_est_csd_0.09dens_100000samples_particle_track.npy',
                     dir_path + '/DesikanKlein2012/0021001_Default_est_csd_0.08dens_100000samples_particle_track.npy',
                     dir_path + '/DesikanKlein2012/0021001_Default_est_csd_0.07dens_100000samples_particle_track.npy',
                     dir_path + '/DesikanKlein2012/0021001_Default_est_csd_0.06dens_100000samples_particle_track.npy',
                     dir_path + '/DesikanKlein2012/0021001_Default_est_csd_0.05dens_100000samples_particle_track.npy']
    [est_path_list_ex, _] = utils.check_est_path_existence(est_path_list)
    assert est_path_list_ex is not None